aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-08-12 20:33:12 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-08-12 20:33:12 +0100
commitd88054a3a754778ea8221fe9187eea2bab21ac7b (patch)
treeba55a66d51d073c9db56087e588a4ff1cfcb4be5
parentd5c1b2ce0defea98142f5f549cef88a389614e42 (diff)
downloadayatana-indicator-power-d88054a3a754778ea8221fe9187eea2bab21ac7b.tar.gz
ayatana-indicator-power-d88054a3a754778ea8221fe9187eea2bab21ac7b.tar.bz2
ayatana-indicator-power-d88054a3a754778ea8221fe9187eea2bab21ac7b.zip
Free memory in the correct place
-rw-r--r--src/indicator-power.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 9211b54..62cdb44 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -551,10 +551,10 @@ get_primary_device (GVariant *devices)
{
primary_device = device;
}
- }
- g_free (device_icon);
- g_free (object_path);
+ g_free (device_icon);
+ g_free (object_path);
+ }
if (discharging)
{