GdkWin32: Zero-out memory of an allocated struct
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5678
This commit is contained in:
		| @ -1968,10 +1968,10 @@ queue_open_clipboard (GdkWin32ClipboardQueueAction  action, | |||||||
| 	return; | 	return; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   info = g_slice_new (GdkWin32ClipboardQueueInfo); |   info = g_slice_new0 (GdkWin32ClipboardQueueInfo); | ||||||
|  |  | ||||||
|   info->display = display; |   info->display = display; | ||||||
|   g_set_object (&info->requestor, requestor); |   info->requestor = g_object_ref (requestor); | ||||||
|   info->selection = GDK_SELECTION_CLIPBOARD; |   info->selection = GDK_SELECTION_CLIPBOARD; | ||||||
|   info->target = target; |   info->target = target; | ||||||
|   info->idle_time = 0; |   info->idle_time = 0; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Luca Bacci
					Luca Bacci