[pygobject] don't destroy just created wrapper when object is created via g_object_new
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] don't destroy just created wrapper when object is created via g_object_new
- Date: Tue, 13 Sep 2011 22:11:27 +0000 (UTC)
commit 61b64a65beee9011f8e4ed20f0a83e6630ba154f
Author: John (J5) Palmieri <johnp redhat com>
Date: Tue Sep 13 18:08:04 2011 -0400
don't destroy just created wrapper when object is created via g_object_new
https://bugzilla.gnome.org/show_bug.cgi?id=657403
gi/_gobject/gobjectmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/_gobject/gobjectmodule.c b/gi/_gobject/gobjectmodule.c
index fc556d2..3ef7842 100644
--- a/gi/_gobject/gobjectmodule.c
+++ b/gi/_gobject/gobjectmodule.c
@@ -1070,7 +1070,7 @@ pygobject__g_instance_init(GTypeInstance *instance,
kwargs = PyDict_New();
if (Py_TYPE(wrapper)->tp_init(wrapper, args, kwargs))
PyErr_Print();
- Py_DECREF(wrapper);
+
Py_DECREF(args);
Py_DECREF(kwargs);
pyglib_gil_state_release(state);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]