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:
parent
70604ba458
commit
dfd897496b
1 changed files with 5 additions and 0 deletions
|
@ -1993,6 +1993,11 @@ gvc_mixer_control_dispose (GObject *object)
|
||||||
{
|
{
|
||||||
GvcMixerControl *control = GVC_MIXER_CONTROL (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) {
|
if (control->priv->pa_context != NULL) {
|
||||||
pa_context_unref (control->priv->pa_context);
|
pa_context_unref (control->priv->pa_context);
|
||||||
control->priv->pa_context = NULL;
|
control->priv->pa_context = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue