[network-manager-applet] mobile: fix some memory leaks
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] mobile: fix some memory leaks
- Date: Tue, 20 Mar 2012 18:27:09 +0000 (UTC)
commit caccdb418c36095318f93da5e6bcd139fa3da097
Author: Dan Williams <dcbw redhat com>
Date: Sun Mar 18 04:25:27 2012 -0500
mobile: fix some memory leaks
src/applet-device-gsm.c | 2 ++
src/mb-menu-item.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/applet-device-gsm.c b/src/applet-device-gsm.c
index f1cfed1..d0da7e4 100644
--- a/src/applet-device-gsm.c
+++ b/src/applet-device-gsm.c
@@ -1249,7 +1249,9 @@ reg_info_reply (DBusGProxy *proxy, DBusGProxyCall *call, gpointer user_data)
notify_user_of_gsm_reg_change (info);
}
+ g_free (info->op_code);
info->op_code = new_op_code;
+ g_free (info->op_name);
info->op_name = new_op_name;
g_clear_error (&error);
diff --git a/src/mb-menu-item.c b/src/mb-menu-item.c
index e8aa980..8a32f7d 100644
--- a/src/mb-menu-item.c
+++ b/src/mb-menu-item.c
@@ -230,6 +230,7 @@ dispose (GObject *object)
gtk_widget_destroy (priv->desc);
gtk_widget_destroy (priv->strength);
gtk_widget_destroy (priv->hbox);
+ g_free (priv->desc_string);
G_OBJECT_CLASS (nm_mb_menu_item_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]