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.
This commit is contained in:
Thomas Wood 2010-12-20 16:50:26 +00:00
parent 70604ba458
commit dfd897496b

View file

@ -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;