[gnome-builder] helper: fix ref transfer to task
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] helper: fix ref transfer to task
- Date: Thu, 1 Feb 2018 03:50:45 +0000 (UTC)
commit bdfe6fba97290a86f0ecfcc045ed34b6a339a6dc
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 31 19:48:28 2018 -0800
helper: fix ref transfer to task
This was fallout from fixing the code-style for ownership
transfer in async functions.
src/plugins/beautifier/gb-beautifier-helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/beautifier/gb-beautifier-helper.c b/src/plugins/beautifier/gb-beautifier-helper.c
index 84047dfa3..8558b63dc 100644
--- a/src/plugins/beautifier/gb-beautifier-helper.c
+++ b/src/plugins/beautifier/gb-beautifier-helper.c
@@ -160,7 +160,7 @@ gb_beautifier_helper_create_tmp_file_cb (GObject *object,
if (g_task_return_error_if_cancelled (task))
g_file_delete (file, NULL, NULL);
else
- g_task_return_pointer (task, g_steal_pointer (&file), g_object_unref);
+ g_task_return_pointer (task, g_object_ref (file), g_object_unref);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]