[network-manager-applet/menu-rework: 15/18] applet: fix memory leaks in wireless_add_menu_item and applet_menu_item_favorize_helper
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-applet/menu-rework: 15/18] applet: fix memory leaks in wireless_add_menu_item and applet_menu_item_favorize_helper
- Date: Fri, 25 Sep 2009 05:49:09 +0000 (UTC)
commit 48c93241bd43e80cdb961115d20bdec460559d0f
Author: Alexander Sack <asac ubuntu com>
Date: Wed Sep 23 16:23:31 2009 +0200
applet: fix memory leaks in wireless_add_menu_item and applet_menu_item_favorize_helper
src/applet-device-wifi.c | 1 +
src/applet.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c
index 3ed5df1..df8fb47 100644
--- a/src/applet-device-wifi.c
+++ b/src/applet-device-wifi.c
@@ -799,6 +799,7 @@ wireless_add_menu_item (NMDevice *device,
GTK_WIDGET (folded_menu_item),
sort_ap_menu_item_by_fav_strength_name0,
sort_ap_menu_item_by_name0);
+ g_list_free (menu_list);
g_slist_free (sorted_aps);
}
diff --git a/src/applet.c b/src/applet.c
index 79dd150..d3646fa 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -501,6 +501,7 @@ applet_menu_item_favorize_helper (GtkBin *binitem,
return;
abort:
g_object_ref_sink (box);
+ g_object_unref (box);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]