From f6194e3407f420ff1f7e81f61f2d42ee7d1fdac1 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 26 Jan 2011 18:38:01 +0000 Subject: [PATCH 1/2] dbus_connection_dispatch: remove dead code There's no way pending can be non-NULL here; if it was, we'd have jumped straight past this block (getting filters from the connection), because replies to pending calls don't go through filters. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128 --- dbus/dbus-connection.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index 6779b6a..dfe5222 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -4613,9 +4613,6 @@ dbus_connection_dispatch (DBusConnection *connection) /* unlocks and calls user code */ _dbus_connection_update_dispatch_status_and_unlock (connection, DBUS_DISPATCH_NEED_MEMORY); - - if (pending) - dbus_pending_call_unref (pending); dbus_connection_unref (connection); return DBUS_DISPATCH_NEED_MEMORY; -- 1.7.2.3