]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - src/process.c
Destroy quit timeout when a process object is destroyed - fixes a crash where a delet...
[sojka/lightdm.git] / src / process.c
index 073cf866111fb2425aab46b5ca3da7a6a8b38f26..542492bc7c7044eb5325d9067073b799befde26a 100644 (file)
@@ -297,6 +297,8 @@ process_finalize (GObject *object)
 
     g_free (self->priv->command);
     g_hash_table_unref (self->priv->env);
+    if (self->priv->quit_timeout)
+        g_source_remove (self->priv->quit_timeout);
     if (self->priv->watch)
         g_source_remove (self->priv->watch);