diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-12 02:01:54 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-12 15:24:50 -0300 |
commit | d23df801cb5e7edf57a1d8613a187619d5eb989e (patch) | |
tree | 3c22938883c62a7be042bce2a2bfa1a0cbdf2538 /libshiboken | |
parent | 62c590edfdbf1f4006c86b2e6f2c70cd64583553 (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.cpp | 1 |
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); } |