aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-02-01 18:51:17 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-02-01 18:51:17 -0600
commit17626e17645023a17e843bedac589d6218ac38bf (patch)
treec7058fa829c429175b25044b9003899bbebb7ecd /src/indicator-power.c
parentc63e1db05b4063b6d7b1d78e7e52e5d8176cfd67 (diff)
downloadayatana-indicator-power-17626e17645023a17e843bedac589d6218ac38bf.tar.gz
ayatana-indicator-power-17626e17645023a17e843bedac589d6218ac38bf.tar.bz2
ayatana-indicator-power-17626e17645023a17e843bedac589d6218ac38bf.zip
don't leak priv->settings
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r--src/indicator-power.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index dcd5db0..6b95b4c 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -899,6 +899,10 @@ indicator_power_init (IndicatorPower *self)
static void
indicator_power_dispose (GObject *object)
{
+ IndicatorPowerPrivate *priv = INDICATOR_POWER(object)->priv;
+
+ g_clear_object (&priv->settings);
+
G_OBJECT_CLASS (indicator_power_parent_class)->dispose (object);
}