aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-08-11 14:48:20 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-08-11 14:48:20 +0100
commit68ee93bbc115c0bad5d9ed907f729d9bc0f4d1bc (patch)
treed14ef0fb65b4f5e4da6c903878040bb527fefa75 /src
parent1ad8d1f21593e74fd831362aab9c5289924a1206 (diff)
downloadayatana-indicator-power-68ee93bbc115c0bad5d9ed907f729d9bc0f4d1bc.tar.gz
ayatana-indicator-power-68ee93bbc115c0bad5d9ed907f729d9bc0f4d1bc.tar.bz2
ayatana-indicator-power-68ee93bbc115c0bad5d9ed907f729d9bc0f4d1bc.zip
Fix some memory leaks
Diffstat (limited to 'src')
-rw-r--r--src/indicator-power.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 17c6bd5..42542cb 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -394,6 +394,9 @@ menu_add_device (GtkMenu *menu,
g_signal_connect (G_OBJECT (item), "activate",
G_CALLBACK (show_info_cb), NULL);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+
+ g_free (device_icon);
+ g_free (object_path);
}
static gsize
@@ -523,6 +526,9 @@ get_primary_device (GVariant *devices)
}
}
+ g_free (device_icon);
+ g_free (object_path);
+
if (discharging)
{
primary_device = primary_device_discharging;