summaryrefslogtreecommitdiff
path: root/source/kde/polkit-qt-1/polkit-qt-1.null-checking.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/polkit-qt-1/polkit-qt-1.null-checking.diff')
-rw-r--r--source/kde/polkit-qt-1/polkit-qt-1.null-checking.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/kde/polkit-qt-1/polkit-qt-1.null-checking.diff b/source/kde/polkit-qt-1/polkit-qt-1.null-checking.diff
new file mode 100644
index 00000000..0ec2a8e3
--- /dev/null
+++ b/source/kde/polkit-qt-1/polkit-qt-1.null-checking.diff
@@ -0,0 +1,14 @@
+Index: agent/polkitqt1-agent-listener.cpp
+===================================================================
+--- agent/polkitqt1-agent-listener.cpp (revision 1183495)
++++ agent/polkitqt1-agent-listener.cpp (working copy)
+@@ -66,7 +66,8 @@
+ qDebug("Destroying listener");
+
+ ListenerAdapter::instance()->removeListener(this);
+- g_object_unref(d->listener);
++ if (d->listener != NULL)
++ g_object_unref(d->listener);
+ }
+
+ bool Listener::registerListener(PolkitQt1::Subject *subject, const QString &objectPath)