aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-01-04 10:08:39 -0600
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-28 10:17:14 +0200
commitafc091939635eb46f2947cfe1aaadcb408de2835 (patch)
tree3d83d3040533c8adde0bab7429c2e6c7810cddb4
parent1182c7fb79942c14f2a713063182778e6af94cd1 (diff)
downloadayatana-indicator-power-afc091939635eb46f2947cfe1aaadcb408de2835.tar.gz
ayatana-indicator-power-afc091939635eb46f2947cfe1aaadcb408de2835.tar.bz2
ayatana-indicator-power-afc091939635eb46f2947cfe1aaadcb408de2835.zip
add a leak safeguard to accounts_service_sound_proxy
-rw-r--r--src/notifier.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/notifier.c b/src/notifier.c
index 487f889..696556a 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -176,6 +176,7 @@ on_sound_proxy_ready (GObject * source_object G_GNUC_UNUSED,
{
IndicatorPowerNotifier * const self = INDICATOR_POWER_NOTIFIER(gself);
priv_t * const p = get_priv (self);
+ g_clear_object (&p->accounts_service_sound_proxy);
p->accounts_service_sound_proxy = proxy;
}
}