summaryrefslogtreecommitdiffstats
path: root/extra/polkit-qt/null-checking.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/polkit-qt/null-checking.patch')
-rw-r--r--extra/polkit-qt/null-checking.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/polkit-qt/null-checking.patch b/extra/polkit-qt/null-checking.patch
new file mode 100644
index 000000000..0ec2a8e38
--- /dev/null
+++ b/extra/polkit-qt/null-checking.patch
@@ -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)