dbus-connection: Remove a duplicate _dbus_list_clear() call 14/197914/1
authorPhilip Withnall <withnall@endlessm.com>
Tue, 17 Jan 2017 08:35:07 +0000 (08:35 +0000)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Thu, 17 Jan 2019 06:26:22 +0000 (15:26 +0900)
This was doing no harm (clearing an already-cleared list is a no-op),
but it was also pointless.

Change-Id: I21b580f01439ef2113183a116f208bf91e09ac76
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99435

dbus/dbus-connection.c

index 10b8a9a..3045c0f 100644 (file)
@@ -2767,8 +2767,6 @@ _dbus_connection_last_unref (DBusConnection *connection)
   _dbus_hash_table_unref (connection->pending_replies);
   connection->pending_replies = NULL;
   
-  _dbus_list_clear (&connection->filter_list);
-  
   _dbus_list_foreach (&connection->outgoing_messages,
                       free_outgoing_message,
                      connection);