Blame SOURCES/0001-Fix-set_qdata-warning-on-accessing-NULL-gobject-prop.patch

95d8fc
From 42d871eb0b08ee6d55e95cc7e4b90844919555b9 Mon Sep 17 00:00:00 2001
95d8fc
From: Ivan Stankovic <ivan.stankovic@avl.com>
95d8fc
Date: Tue, 21 Feb 2012 12:24:58 +0100
95d8fc
Subject: [PATCH] Fix set_qdata warning on accessing NULL gobject property
95d8fc
95d8fc
https://bugzilla.gnome.org/show_bug.cgi?id=661155
95d8fc
---
95d8fc
 gobject/pygobject.c |    4 +++-
95d8fc
 1 files changed, 3 insertions(+), 1 deletions(-)
95d8fc
95d8fc
diff --git a/gobject/pygobject.c b/gobject/pygobject.c
95d8fc
index 6c2f06c..70dc89a 100644
95d8fc
--- a/gobject/pygobject.c
95d8fc
+++ b/gobject/pygobject.c
95d8fc
@@ -991,7 +991,9 @@ pygobject_new(GObject *obj)
95d8fc
 PyObject *
95d8fc
 pygobject_new_sunk(GObject *obj)
95d8fc
 {
95d8fc
-    g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1));
95d8fc
+    if (obj)
95d8fc
+       g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1));
95d8fc
+       
95d8fc
     return pygobject_new_full(obj, TRUE, NULL);
95d8fc
 }
95d8fc
 
95d8fc
-- 
95d8fc
1.7.1
95d8fc