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:
parent
e7928ce6ee
commit
98040e67a2
@ -43,7 +43,7 @@ meta_selection_source_memory_read_async (MetaSelectionSource *source,
|
|||||||
{
|
{
|
||||||
MetaSelectionSourceMemory *source_mem = META_SELECTION_SOURCE_MEMORY (source);
|
MetaSelectionSourceMemory *source_mem = META_SELECTION_SOURCE_MEMORY (source);
|
||||||
GInputStream *stream;
|
GInputStream *stream;
|
||||||
GTask *task;
|
g_autoptr (GTask) task = NULL;
|
||||||
|
|
||||||
if (g_strcmp0 (mimetype, source_mem->mimetype) != 0)
|
if (g_strcmp0 (mimetype, source_mem->mimetype) != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user