compositor: Avoid a crash if the top window actor is finalized
Since we're not holding a reference, the top window actor might be finalized when we paint resulting in a use after free crash. https://bugzilla.gnome.org/show_bug.cgi?id=788493
This commit is contained in:
parent
12381d57d1
commit
3caefd8fda
@ -671,6 +671,9 @@ meta_compositor_remove_window (MetaCompositor *compositor,
|
||||
if (compositor->unredirected_window == window)
|
||||
set_unredirected_window (compositor, NULL);
|
||||
|
||||
if (compositor->top_window_actor == window_actor)
|
||||
compositor->top_window_actor = NULL;
|
||||
|
||||
meta_window_actor_destroy (window_actor);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user