aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-08-03 10:53:44 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-08-03 11:07:25 -0300
commit02503b1952b4c0558081206e31e92ad43886f9b5 (patch)
tree0f21925bbfd16774a27ac9627eab81965280123a
parentf2532a7fff116cb825f99b0d6c4032fe054dfde5 (diff)
Objects of the BaseWrapper type must call a deallocator.
A BaseWrapper object must clean the used resources (e.g. remove the C++ pointer to Python wrapper mapping) when dying.
-rw-r--r--libshiboken/basewrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index dcd8c8724..e351c47fc 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -124,7 +124,7 @@ SbkBaseWrapperType SbkBaseWrapper_Type = { { {
/*tp_name*/ "Shiboken.BaseWrapper",
/*tp_basicsize*/ sizeof(SbkBaseWrapper),
/*tp_itemsize*/ 0,
- /*tp_dealloc*/ 0,
+ /*tp_dealloc*/ deallocWrapperWithPrivateDtor,
/*tp_print*/ 0,
/*tp_getattr*/ 0,
/*tp_setattr*/ 0,