*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@455 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a2c6df383f
commit
26d340bb95
1 changed files with 1 additions and 8 deletions
|
|
@ -140,15 +140,8 @@ void
|
|||
DohObjFree(DOH *ptr) {
|
||||
DohBase *b;
|
||||
int len;
|
||||
if (!DohCheck(ptr)) {
|
||||
DohTrace(DOH_MEMORY,"DohObjFree. %x not a DOH object!\n", ptr);
|
||||
return; /* Oh well. Guess we're leaky */
|
||||
}
|
||||
b = (DohBase *) ptr;
|
||||
if (!b->objinfo) {
|
||||
DohTrace(DOH_MEMORY,"DohObjFree. %x not properly defined. No objinfo structure.\n", ptr);
|
||||
return; /* Improperly initialized object. leak some more */
|
||||
}
|
||||
if (b->flags & DOH_FLAG_INTERN) return;
|
||||
if (b->file) DohDelete(b->file);
|
||||
len = (b->objinfo->objsize + 7) & ~0x07;
|
||||
b->file = (DOH *) FreeFragments[len];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue