From: Руслан Ижбулатов Date: Sun, 10 Jun 2018 20:58:19 +0000 (+0000) Subject: A quick and dirty fix for a circular allocation issue X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~182^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cacdef8db73f8d87c2c88d77414fbd2b854a5ea3;p=gtk4.git 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. --- 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));