win32: close the screen when disposing the display

This commit is contained in:
Paolo Borelli 2016-02-28 15:33:28 +01:00
parent 54ebe5d3c5
commit aaed73671c

View File

@ -628,6 +628,8 @@ gdk_win32_display_dispose (GObject *object)
{
GdkWin32Display *display_win32 = GDK_WIN32_DISPLAY (object);
_gdk_screen_close (display_win32->screen);
if (display_win32->hwnd != NULL)
{
DestroyWindow (display_win32->hwnd);