display: Unref selection on shutdown

Otherwise it will be leaked and the dispose method added in the previous
commit would never be run.

Fixes parts of https://gitlab.gnome.org/GNOME/mutter/issues/1006
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1001
This commit is contained in:
Sebastian Keller 2020-01-30 09:54:02 +01:00 committed by Robert Mader
parent 35316a034f
commit d699c80ac2

View File

@ -1022,6 +1022,7 @@ meta_display_close (MetaDisplay *display,
g_clear_object (&display->sound_player);
meta_clipboard_manager_shutdown (display);
g_clear_object (&display->selection);
g_object_unref (display);
the_display = NULL;