[pygobject] testhelpermodule.c: Do not unref called method



commit c29e11812d176b1f057074c9bab22c9614ae4f8c
Author: Martin Pitt <martinpitt gnome org>
Date:   Tue Dec 18 11:43:04 2012 +0100

    testhelpermodule.c: Do not unref called method
    
    In _wrap_test_gerror_exception(), do not unref the method arguments. This
    causes a crash when being run with the stricter refcounting/memory checks with
    debug-enabled Python builds.

 tests/testhelpermodule.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/tests/testhelpermodule.c b/tests/testhelpermodule.c
index 16bb39e..d82a3c2 100644
--- a/tests/testhelpermodule.c
+++ b/tests/testhelpermodule.c
@@ -530,7 +530,6 @@ _wrap_test_gerror_exception(PyObject *self, PyObject *args)
         return NULL;
     }	    
 
-    Py_DECREF(py_method);
     Py_DECREF(py_args);
     Py_DECREF(py_ret);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]