aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-12 02:01:54 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-12 15:24:50 -0300
commitd23df801cb5e7edf57a1d8613a187619d5eb989e (patch)
tree3c22938883c62a7be042bce2a2bfa1a0cbdf2538 /libshiboken
parent62c590edfdbf1f4006c86b2e6f2c70cd64583553 (diff)
Deallocator for classes with private destructor now calls reference clearing function.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/basewrapper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 79ee3cfcf..2dda3a4bc 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -169,6 +169,7 @@ void SbkBaseWrapper_Dealloc_PrivateDtor(PyObject* self)
PyObject_ClearWeakRefs(self);
BindingManager::instance().releaseWrapper(self);
+ SbkBaseWrapper_clearReferences(reinterpret_cast<SbkBaseWrapper*>(self));
Py_TYPE(reinterpret_cast<SbkBaseWrapper*>(self))->tp_free(self);
}