[mutter] core: Fix task leak in meta_selection_source_memory_read_async
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] core: Fix task leak in meta_selection_source_memory_read_async
- Date: Sat, 1 Feb 2020 14:32:23 +0000 (UTC)
commit 98040e67a2eaf8740c93da1a35f131e1130ddc4f
Author: Sebastian Keller <skeller gnome org>
Date: Thu Jan 30 14:37:57 2020 +0100
core: Fix task leak in meta_selection_source_memory_read_async
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1001
src/core/meta-selection-source-memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/core/meta-selection-source-memory.c b/src/core/meta-selection-source-memory.c
index c8b0c83f5..a52f50861 100644
--- a/src/core/meta-selection-source-memory.c
+++ b/src/core/meta-selection-source-memory.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]