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:
parent
d029360ac4
commit
84f5185008
1 changed files with 1 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue