[libchamplain/libchamplain-0-4] python-binding: wrap slot tp_dealloc to prevent polygon unref
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] python-binding: wrap slot tp_dealloc to prevent polygon unref
- Date: Sat, 9 Jan 2010 19:59:12 +0000 (UTC)
commit 77e2fdbd1ac7cae61d62b47bf03ba638611ecb46
Author: Victor Godoy Poluceno <victorpoluceno gmail com>
Date: Sat Jan 9 10:15:25 2010 -0200
python-binding: wrap slot tp_dealloc to prevent polygon unref
bindings/python/champlain/pychamplain.override | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/bindings/python/champlain/pychamplain.override b/bindings/python/champlain/pychamplain.override
index 8c43dd9..f9f72c8 100644
--- a/bindings/python/champlain/pychamplain.override
+++ b/bindings/python/champlain/pychamplain.override
@@ -518,3 +518,9 @@ _wrap_champlain_marker_new_with_text(PyObject *self, PyObject *args, PyObject *k
return pygobject_new((GObject *)ret);
}
%%
+override-slot ChamplainPolygon.tp_dealloc
+static void
+_wrap_champlain_polygon_tp_dealloc (PyObject *self)
+{
+ self->ob_type->tp_free((PyObject*)self);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]