aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-12 21:14:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-13 16:15:46 +0800
commit9bce1c2065013af4b99fd224f2c0bd35fd77ff25 (patch)
tree9d652f3e1b1962d5aa2587018d0d2b826d8ab942 /libempathy-gtk
parent61a7bd361e4b849c023e960782beea19dabeeb28 (diff)
downloadgsoc2013-empathy-9bce1c2065013af4b99fd224f2c0bd35fd77ff25.tar
gsoc2013-empathy-9bce1c2065013af4b99fd224f2c0bd35fd77ff25.tar.gz
gsoc2013-empathy-9bce1c2065013af4b99fd224f2c0bd35fd77ff25.tar.bz2
gsoc2013-empathy-9bce1c2065013af4b99fd224f2c0bd35fd77ff25.tar.lz
gsoc2013-empathy-9bce1c2065013af4b99fd224f2c0bd35fd77ff25.tar.xz
gsoc2013-empathy-9bce1c2065013af4b99fd224f2c0bd35fd77ff25.tar.zst
gsoc2013-empathy-9bce1c2065013af4b99fd224f2c0bd35fd77ff25.zip
individual-menu: fix GeeIterator leak
https://bugzilla.gnome.org/show_bug.cgi?id=683864
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index 6058c4938..e9edf44fa 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -130,7 +130,7 @@ individual_menu_add_personas (GtkMenuShell *menu,
/* return early if these entries would add nothing beyond the "quick" items */
if (persona_count <= 1)
- return;
+ goto out;
/* add a separator before the list of personas */
item = gtk_separator_menu_item_new ();
@@ -266,6 +266,7 @@ while_finish:
g_clear_object (&persona);
}
+out:
g_clear_object (&iter);
}