From dfd897496bd46f90187016041c0408856ac9693d Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Mon, 20 Dec 2010 16:50:26 +0000 Subject: [PATCH] sound: Remove the reconnect timeout during the dispose of GvcMixerControl Remove the reconnect timeout so that the callback function is not called after the object has been destroyed. --- panels/sound/gvc-mixer-control.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panels/sound/gvc-mixer-control.c b/panels/sound/gvc-mixer-control.c index 6f05be34d..0635e639e 100644 --- a/panels/sound/gvc-mixer-control.c +++ b/panels/sound/gvc-mixer-control.c @@ -1993,6 +1993,11 @@ gvc_mixer_control_dispose (GObject *object) { GvcMixerControl *control = GVC_MIXER_CONTROL (object); + if (control->priv->reconnect_id != 0) { + g_source_remove (control->priv->reconnect_id); + control->priv->reconnect_id = 0; + } + if (control->priv->pa_context != NULL) { pa_context_unref (control->priv->pa_context); control->priv->pa_context = NULL;