1
0
Fork 0

display: Destroy compositor using g_clear_pointer

https://gitlab.gnome.org/GNOME/mutter/merge_requests/385
This commit is contained in:
Marco Trevisan (Treviño) 2019-04-30 18:47:42 -05:00 committed by Marco Trevisan
parent d526283ab9
commit 93c7d571af

View file

@ -975,8 +975,7 @@ meta_display_close (MetaDisplay *display,
/* Stop caring about events */ /* Stop caring about events */
meta_display_free_events (display); meta_display_free_events (display);
if (display->compositor) g_clear_pointer (&display->compositor, meta_compositor_destroy);
meta_compositor_destroy (display->compositor);
meta_display_shutdown_x11 (display); meta_display_shutdown_x11 (display);