Skip to content

clipboard: Fix a crash when GdkContentProviderUnion doesn't support the given data format

Carlos Garcia Campos requested to merge carlosgc/clipboard-crash into master

After iterating all the providers, all of them returning unsupported error, gdk_content_provider_union_get_value() returns FALSE without filing the given GError. Then gdk_clipboard_read_value_internal() assumes there's a GError when FALSE is returned and g_task_return_error() fails. We can just chain up to parent implementation to ensure the GError is filled with unsupported error.

Merge request reports