From cacdef8db73f8d87c2c88d77414fbd2b854a5ea3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sun, 10 Jun 2018 20:58:19 +0000 Subject: [PATCH] A quick and dirty fix for a circular allocation issue query_targets() tried to write to struct that wasn't yet allocated. This code is going to change soon, so this is a temporary fix until then. --- gdk/win32/gdkdrop-win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/win32/gdkdrop-win32.c b/gdk/win32/gdkdrop-win32.c index 2c15be42b6..23d95d1824 100644 --- a/gdk/win32/gdkdrop-win32.c +++ b/gdk/win32/gdkdrop-win32.c @@ -435,10 +435,11 @@ idroptarget_dragenter (LPDROPTARGET This, */ source_context ? source_context->source_surface : NULL, ctx->dest_surface, - query_targets (pDataObj, context_win32->droptarget_w32format_contentformat_map), + query_targets (pDataObj, NULL), GDK_ACTION_DEFAULT | GDK_ACTION_COPY | GDK_ACTION_MOVE, GDK_DRAG_PROTO_OLE2); context_win32 = GDK_WIN32_DROP_CONTEXT (context); + gdk_content_formats_unref (query_targets (pDataObj, context_win32->droptarget_w32format_contentformat_map)); g_array_set_size (context_win32->droptarget_w32format_contentformat_map, 0); g_set_object (&context_win32->local_source_context, GDK_WIN32_DRAG_CONTEXT (source_context)); -- 2.30.2