From 739137ccf90e440253c7816110f165f96a165683 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Thu, 7 May 2020 11:21:18 +0200 Subject: [PATCH] clipboard: GdkContentProviderUnion should return after writing the first matched format It continues trying with the other providers due to a missing early return. --- gdk/gdkcontentproviderimpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/gdkcontentproviderimpl.c b/gdk/gdkcontentproviderimpl.c index 6685f3f8be..104f3fbf55 100644 --- a/gdk/gdkcontentproviderimpl.c +++ b/gdk/gdkcontentproviderimpl.c @@ -302,6 +302,7 @@ gdk_content_provider_union_write_mime_type_async (GdkContentProvider *provid gdk_content_provider_union_write_mime_type_done, task); gdk_content_formats_unref (formats); + return; } gdk_content_formats_unref (formats); }