diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-10-18 21:24:15 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-10-22 17:40:50 +0800 |
commit | c754b1deab91b48e6b203dd2c6f1293a124c66af (patch) | |
tree | 438c0e438590e46e10c52ce417df49ae9dc94c7d /libempathy-gtk/empathy-individual-widget.c | |
parent | 4882b051fe63abaa6dc4926442a161f3190df0e6 (diff) | |
download | gsoc2013-empathy-c754b1deab91b48e6b203dd2c6f1293a124c66af.tar gsoc2013-empathy-c754b1deab91b48e6b203dd2c6f1293a124c66af.tar.gz gsoc2013-empathy-c754b1deab91b48e6b203dd2c6f1293a124c66af.tar.bz2 gsoc2013-empathy-c754b1deab91b48e6b203dd2c6f1293a124c66af.tar.lz gsoc2013-empathy-c754b1deab91b48e6b203dd2c6f1293a124c66af.tar.xz gsoc2013-empathy-c754b1deab91b48e6b203dd2c6f1293a124c66af.tar.zst gsoc2013-empathy-c754b1deab91b48e6b203dd2c6f1293a124c66af.zip |
libempathy-gtk: Fix several memory leaks from libgee
libgee’s GeeIterator returns a new reference from most of its methods,
especially gee_iterable_iterator() and gee_iterator_get(). Add corresponding
g_object_unref() calls.
https://bugzilla.gnome.org/show_bug.cgi?id=710453
Diffstat (limited to 'libempathy-gtk/empathy-individual-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-widget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c index ca007aaf6..fac2c5a1b 100644 --- a/libempathy-gtk/empathy-individual-widget.c +++ b/libempathy-gtk/empathy-individual-widget.c @@ -1784,6 +1784,7 @@ personas_changed_cb (FolksIndividual *individual, g_clear_object (&persona); } + g_clear_object (&iter); /* * What we display for various conditions: @@ -1849,6 +1850,7 @@ personas_changed_cb (FolksIndividual *individual, add_persona (self, persona); g_clear_object (&persona); } + g_clear_object (&iter); } else if (was_showing_personas && !will_show_personas) { @@ -1860,6 +1862,7 @@ personas_changed_cb (FolksIndividual *individual, remove_persona (self, persona); g_clear_object (&persona); } + g_clear_object (&iter); if (removed != NULL) { @@ -1878,7 +1881,6 @@ personas_changed_cb (FolksIndividual *individual, /* Set up the Individual grid instead */ individual_grid_set_up (self); } - g_clear_object (&iter); /* Hide the last separator and show the others */ children = gtk_container_get_children (GTK_CONTAINER (priv->vbox_individual)); |