[Xfce4-commits] <xfce4-xkb-plugin:master> Plug two additionnal leaks.

Jérôme Guelfucci noreply at xfce.org
Fri Apr 29 14:26:01 CEST 2011


Updating branch refs/heads/master
         to 536cfae6e0567ed1f3e8201f42207d53d6277bb5 (commit)
       from a7b1e7f6b0ab29f4c360d484978234abb1fa0b42 (commit)

commit 536cfae6e0567ed1f3e8201f42207d53d6277bb5
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Fri Apr 29 13:30:00 2011 +0200

    Plug two additionnal leaks.

 panel-plugin/xfce4-xkb-plugin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/xfce4-xkb-plugin.c b/panel-plugin/xfce4-xkb-plugin.c
index 5392fcd..6ccc6d9 100644
--- a/panel-plugin/xfce4-xkb-plugin.c
+++ b/panel-plugin/xfce4-xkb-plugin.c
@@ -173,6 +173,7 @@ xkb_new (XfcePanelPlugin *plugin)
     {
         xkb_load_default (xkb);
     }
+    g_free (filename);
 
     xkb->btn = gtk_button_new ();
     gtk_button_set_relief (GTK_BUTTON (xkb->btn), GTK_RELIEF_NONE);
@@ -396,6 +397,8 @@ xkb_initialize_menu (t_xkb *xkb)
             g_object_unref (G_OBJECT (pixbuf));
 
             gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
+
+            g_object_unref (handle);
         }
 
         gtk_widget_show (menu_item);



More information about the Xfce4-commits mailing list