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

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