[pygobject/invoke-rewrite] [gi-invoke-ng] don't decref value taken from a dict as it is borrowed



commit 81662fcd09f112bfffcdc5b7f01a5537b84cd9d4
Author: John (J5) Palmieri <johnp redhat com>
Date:   Tue Mar 29 16:54:44 2011 -0400

    [gi-invoke-ng] don't decref value taken from a dict as it is borrowed

 gi/pygi-invoke-ng.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-invoke-ng.c b/gi/pygi-invoke-ng.c
index b31bb7d..8c48f45 100644
--- a/gi/pygi-invoke-ng.c
+++ b/gi/pygi-invoke-ng.c
@@ -126,7 +126,6 @@ _invoke_state_init_from_callable_cache (PyGIInvokeState *state,
         }
 
         state->implementor_gtype = pyg_type_from_object (py_gtype);
-        Py_DECREF(py_gtype);
 
         if (state->implementor_gtype == 0)
             return FALSE;



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