Modified the WrapperFunction class. Fixed various bugs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@555 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
19d34057e7
commit
e791008720
18 changed files with 524 additions and 492 deletions
|
|
@ -34,7 +34,11 @@ DohDelete(DOH *obj) {
|
|||
DohBase *b = (DohBase *) obj;
|
||||
DohObjInfo *objinfo;
|
||||
|
||||
if (!DohCheck(b)) return;
|
||||
if (!obj) return;
|
||||
if (!DohCheck(b)) {
|
||||
fprintf(stderr,"DOH: Fatal error. Attempt to delete a non-doh object.\n");
|
||||
abort();
|
||||
}
|
||||
if (b->flag_intern) return;
|
||||
b->refcount--;
|
||||
if (b->refcount <= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue