summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-08-22 18:45:16 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-08-22 18:45:16 +0200
commitf357dd016df5a9080edaf6715402672c28227427 (patch)
tree47e17de22b33520a715a98da8687710566161985
parent4711c065af11d0e02f712b649ffd79d9c8bba436 (diff)
downloadgmathlib-f357dd016df5a9080edaf6715402672c28227427.tar.gz
gmathlib-f357dd016df5a9080edaf6715402672c28227427.tar.bz2
* Increment refcount of gmathlib context object when getting it
-rw-r--r--bindings/python/pygmathview/gmathview.override2
1 files changed, 2 insertions, 0 deletions
diff --git a/bindings/python/pygmathview/gmathview.override b/bindings/python/pygmathview/gmathview.override
index 53a3f9e..0a53da9 100644
--- a/bindings/python/pygmathview/gmathview.override
+++ b/bindings/python/pygmathview/gmathview.override
@@ -56,6 +56,8 @@ _wrap_g_math_view_get_context (PyGObject *self)
ret = PyObject_Call ((PyObject *) &PyGMathContext_Type, args, kwds);
+ Py_INCREF (ret);
+
Py_DECREF (args);
Py_DECREF (kwds);