[pygobject/pygobject-2-28: 2/4] Revert "Fix wrong refcount when calling introspected widget constructors"
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-2-28: 2/4] Revert "Fix wrong refcount when calling introspected widget constructors"
- Date: Wed, 9 Feb 2011 16:44:59 +0000 (UTC)
commit d32c0ecc6cde743047054e65355cbbfbf808d5ce
Author: Steve Frécinaux <code istique net>
Date: Wed Feb 9 17:15:41 2011 +0100
Revert "Fix wrong refcount when calling introspected widget constructors"
This reverts commit 7bc4122897d9d05172a2bd5b56bded87e2afaec4.
https://bugzilla.gnome.org/show_bug.cgi?id=641525
gobject/pygobject.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gobject/pygobject.c b/gobject/pygobject.c
index face97a..e073043 100644
--- a/gobject/pygobject.c
+++ b/gobject/pygobject.c
@@ -967,9 +967,7 @@ pygobject_new_full(GObject *obj, gboolean sink, gpointer g_class)
self->weakreflist = NULL;
self->private_flags.flags = 0;
self->obj = obj;
- /* if we are creating a wrapper around a newly created object, it can have
- a floating ref (e.g. for methods like Gtk.Button.new()). Bug 640868 */
- g_object_ref_sink(obj);
+ g_object_ref(obj);
pygobject_register_wrapper((PyObject *)self);
PyObject_GC_Track((PyObject *)self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]