forked from AuroraMiddleware/gtk
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:
parent
e0aa35ca58
commit
2ad243d43d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user