cancel pending defers

This commit is contained in:
Wim Taymans 2016-10-20 19:36:26 +02:00
parent 8fac22afdb
commit 9b2b4b9b5c
5 changed files with 16 additions and 2 deletions

View file

@ -844,6 +844,7 @@ static void
pinos_link_dispose (GObject * object)
{
PinosLink *this = PINOS_LINK (object);
PinosLinkPrivate *priv = this->priv;
g_debug ("link %p: dispose", this);
@ -878,6 +879,8 @@ pinos_link_dispose (GObject * object)
}
link_unregister_object (this);
pinos_main_loop_defer_cancel (priv->main_loop, this, 0);
G_OBJECT_CLASS (pinos_link_parent_class)->dispose (object);
}