win32: do not use g_clear_pointer also on the clipboard window
A follow up on the previous patch. We should use DestroyWindow directly since it has a different calling convention than the expected callback for g_clear_pointer
This commit is contained in:
parent
2ad243d43d
commit
d74a08b80f
@ -720,8 +720,12 @@ gdk_win32_display_dispose (GObject *object)
|
|||||||
display_win32->hwnd = NULL;
|
display_win32->hwnd = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_clear_pointer (&display_win32->clipboard_hwnd, (GDestroyNotify)DestroyWindow);
|
if (display_win32->clipboard_hwnd != NULL)
|
||||||
_hwnd_next_viewer = NULL;
|
{
|
||||||
|
DestroyWindow (display_win32->clipboard_hwnd);
|
||||||
|
display_win32->clipboard_hwnd = NULL;
|
||||||
|
_hwnd_next_viewer = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (gdk_win32_display_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gdk_win32_display_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user