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:
Dave Beazley 2000-07-10 16:46:18 +00:00
commit e791008720
18 changed files with 524 additions and 492 deletions

View file

@ -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) {