diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-02-01 18:51:17 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-02-01 18:51:17 -0600 |
commit | 17626e17645023a17e843bedac589d6218ac38bf (patch) | |
tree | c7058fa829c429175b25044b9003899bbebb7ecd /src | |
parent | c63e1db05b4063b6d7b1d78e7e52e5d8176cfd67 (diff) | |
download | ayatana-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')
-rw-r--r-- | src/indicator-power.c | 4 |
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); } |