aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/device.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index d52ce8a..219e738 100644
--- a/src/device.c
+++ b/src/device.c
@@ -130,8 +130,12 @@ indicator_power_device_finalize (GObject *object)
IndicatorPowerDevice * self = INDICATOR_POWER_DEVICE(object);
IndicatorPowerDevicePrivate * priv = self->priv;
- g_clear_pointer (&priv->object_path, g_free);
- g_clear_pointer (&priv->icon, g_free);
+ //g_clear_pointer (&priv->object_path, g_free);
+ //g_clear_pointer (&priv->icon, g_free);
+ g_free (priv->object_path);
+ priv->object_path = NULL;
+ g_free (priv->icon);
+ priv->icon = NULL;
}
/***