[gnome-control-center] sound: Remove the reconnect timeout during the dispose of GvcMixerControl



commit dfd897496bd46f90187016041c0408856ac9693d
Author: Thomas Wood <thos gnome org>
Date:   Mon Dec 20 16:50:26 2010 +0000

    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 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/sound/gvc-mixer-control.c b/panels/sound/gvc-mixer-control.c
index 6f05be3..0635e63 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]