]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-connection: Remove a duplicate _dbus_list_clear() call
authorPhilip Withnall <withnall@endlessm.com>
Tue, 17 Jan 2017 08:35:07 +0000 (08:35 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Jan 2017 14:59:26 +0000 (14:59 +0000)
This was doing no harm (clearing an already-cleared list is a no-op),
but it was also pointless.

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 319987e04d9fa4cdf9e2562a031bad48ac49aa19..f42dac4686902fa30d1602388492678038c998e6 100644 (file)
@@ -2758,8 +2758,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);