aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-power.c')
-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;