Remove DohClose (Close) and replace with calls to DohDelete (Delete) to fix some minor memory leaks in most uses of NewFile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
61b4c1cbcd
commit
5a1e82a2f4
25 changed files with 45 additions and 91 deletions
|
|
@ -761,6 +761,7 @@ int DohUngetc(int ch, DOH *obj) {
|
|||
* DohClose()
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
int DohClose(DOH *obj) {
|
||||
DohBase *b = (DohBase *) obj;
|
||||
DohObjInfo *objinfo;
|
||||
|
|
@ -773,6 +774,7 @@ int DohClose(DOH *obj) {
|
|||
}
|
||||
return fclose((FILE *) obj);
|
||||
}
|
||||
*/
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* DohIsString()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue