core: Fix task leak in meta_selection_source_memory_read_async

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1001
This commit is contained in:
Sebastian Keller 2020-01-30 14:37:57 +01:00 committed by Robert Mader
parent e7928ce6ee
commit 98040e67a2

View File

@ -43,7 +43,7 @@ meta_selection_source_memory_read_async (MetaSelectionSource *source,
{
MetaSelectionSourceMemory *source_mem = META_SELECTION_SOURCE_MEMORY (source);
GInputStream *stream;
GTask *task;
g_autoptr (GTask) task = NULL;
if (g_strcmp0 (mimetype, source_mem->mimetype) != 0)
{