]> git.0d.be Git - empathy.git/commitdiff
individual-menu: fix GeeIterator leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 12 Sep 2012 13:14:11 +0000 (15:14 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 13 Sep 2012 08:15:46 +0000 (10:15 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=683864

libempathy-gtk/empathy-individual-menu.c

index 6058c493887a13e4c166cf12e98d7acb0848c375..e9edf44fad197a20d1642e4b3cc4388a161ec3bf 100644 (file)
@@ -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);
 }