]> git.0d.be Git - empathy.git/commitdiff
Log window: free the entities together with the list
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 24 Feb 2011 10:46:00 +0000 (10:46 +0000)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 24 Feb 2011 17:09:24 +0000 (17:09 +0000)
libempathy-gtk/empathy-log-window.c

index 4c979ccd7da9d97713ad88dad09a5a4b80b1cb89..60859968ed798ac71fc7f13ae8eeeb2f7f0892b9 100644 (file)
@@ -841,10 +841,8 @@ log_manager_got_entities_cb (GObject *manager,
                        if (tpl_entity_get_entity_type (entity) == TPL_ENTITY_ROOM) {
                        } else {
                        }
                        if (tpl_entity_get_entity_type (entity) == TPL_ENTITY_ROOM) {
                        } else {
                        }
-
-                       g_object_unref (entity);
        }
        }
-       g_list_free (entities);
+       g_list_free_full (entities, g_object_unref);
 
        /* Unblock signals */
        g_signal_handlers_unblock_by_func (selection,
 
        /* Unblock signals */
        g_signal_handlers_unblock_by_func (selection,