summaryrefslogtreecommitdiffstats
path: root/extra/polkit-qt/null-checking.patch
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-10-11 15:04:15 +0200
committersibel <lesibel at free dot fr>2010-10-11 15:04:15 +0200
commit0115dea8d30cc7521df2c6ba0c1eb58a6b462c5e (patch)
tree7e733574c62335c5ffca778bc9049bd1c36db607 /extra/polkit-qt/null-checking.patch
parent83e7acc38d9771f9edfe89f5ec31674a012deea8 (diff)
downloadnutyx-extra-0115dea8d30cc7521df2c6ba0c1eb58a6b462c5e.tar.gz
nutyx-extra-0115dea8d30cc7521df2c6ba0c1eb58a6b462c5e.tar.bz2
nutyx-extra-0115dea8d30cc7521df2c6ba0c1eb58a6b462c5e.tar.xz
nutyx-extra-0115dea8d30cc7521df2c6ba0c1eb58a6b462c5e.zip
correction de polkit-qt#0.96.1-2
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)