diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-05-29 13:35:52 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-05-29 13:35:52 -0500 |
commit | 1c35339e5c32df4908659e53be54d146893b6fe3 (patch) | |
tree | d51c104a16d37ae96f4dd0f04a1aaa7dd243328d | |
parent | 8a37ae27c57386bb321f6d97cfc9883d03b9027a (diff) | |
download | ayatana-indicator-power-1c35339e5c32df4908659e53be54d146893b6fe3.tar.gz ayatana-indicator-power-1c35339e5c32df4908659e53be54d146893b6fe3.tar.bz2 ayatana-indicator-power-1c35339e5c32df4908659e53be54d146893b6fe3.zip |
use g_clear_pointer() where useful
-rw-r--r-- | src/device.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/device.c b/src/device.c index 5cd39dd..bd182bf 100644 --- a/src/device.c +++ b/src/device.c @@ -132,12 +132,8 @@ 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_free (priv->object_path); - priv->object_path = NULL; - g_free (priv->icon); - priv->icon = NULL; + g_clear_pointer (&priv->object_path, g_free); + g_clear_pointer (&priv->icon, g_free); } /*** |