Commit 42d871eb authored by Ivan Stankovic's avatar Ivan Stankovic Committed by Martin Pitt

Fix set_qdata warning on accessing NULL gobject property

https://bugzilla.gnome.org/show_bug.cgi?id=661155
parent 99162bf8
......@@ -991,7 +991,9 @@ pygobject_new(GObject *obj)
PyObject *
pygobject_new_sunk(GObject *obj)
{
g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1));
if (obj)
g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1));
return pygobject_new_full(obj, TRUE, NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment