desktop/support-pkg-polkit-qt/null-checking.patch

15 lines
530 B
Diff
Raw Normal View History

2011-01-21 04:47:18 +08:00
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)