win32: do not use g_clear_pointer to destroy the window

DestroyWindow expects a different calling convenction so
we endup getting an error at runtime
This commit is contained in:
Ignacio Casal Quinteiro 2015-11-13 12:54:54 +01:00
parent e0aa35ca58
commit 2ad243d43d

View File

@ -714,7 +714,12 @@ gdk_win32_display_dispose (GObject *object)
{
GdkWin32Display *display_win32 = GDK_WIN32_DISPLAY (object);
g_clear_pointer (&display_win32->hwnd, (GDestroyNotify)DestroyWindow);
if (display_win32->hwnd != NULL)
{
DestroyWindow (display_win32->hwnd);
display_win32->hwnd = NULL;
}
g_clear_pointer (&display_win32->clipboard_hwnd, (GDestroyNotify)DestroyWindow);
_hwnd_next_viewer = NULL;