From 4752d427e4e5d1fdbc306134bc4b47e671a24b17 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sun, 2 Feb 2014 11:37:25 +0100 Subject: [PATCH] window_actor: Remove the frame_messages timeout in destroy Otherwise it might fire off later and cause a crash. https://bugzilla.gnome.org/show_bug.cgi?id=723468 --- src/compositor/meta-window-actor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 4e7c14d06..6dfd9da65 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -1285,6 +1285,12 @@ meta_window_actor_destroy (MetaWindowActor *self) window_type = meta_window_get_window_type (window); meta_window_set_compositor_private (window, NULL); + if (priv->send_frame_messages_timer != 0) + { + g_source_remove (priv->send_frame_messages_timer); + priv->send_frame_messages_timer = 0; + } + /* * We remove the window from internal lookup hashes and thus any other * unmap events etc fail