Added reference count assertion to Delete

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-08-14 22:05:14 +00:00
commit 84f5185008

View file

@ -40,6 +40,7 @@ DohDelete(DOH *obj) {
abort();
}
if (b->flag_intern) return;
assert(b->refcount > 0);
b->refcount--;
if (b->refcount <= 0) {
objinfo = dohtypes[b->type];