GdkWin32: Zero-out memory of an allocated struct

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5678
This commit is contained in:
Luca Bacci
2023-03-21 10:34:32 +01:00
parent a7ff289302
commit 22b091047f

View File

@ -1968,10 +1968,10 @@ queue_open_clipboard (GdkWin32ClipboardQueueAction action,
return;
}
info = g_slice_new (GdkWin32ClipboardQueueInfo);
info = g_slice_new0 (GdkWin32ClipboardQueueInfo);
info->display = display;
g_set_object (&info->requestor, requestor);
info->requestor = g_object_ref (requestor);
info->selection = GDK_SELECTION_CLIPBOARD;
info->target = target;
info->idle_time = 0;