[gnome-builder] diagnostician: steal the pointer instead of ref
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] diagnostician: steal the pointer instead of ref
- Date: Thu, 12 May 2016 14:12:12 +0000 (UTC)
commit fd701a96b8f7c3e1c3c4efe8425c66ed83d3a90e
Author: Christian Hergert <chergert redhat com>
Date: Thu May 12 17:07:02 2016 +0300
diagnostician: steal the pointer instead of ref
libide/ide-diagnostician.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-diagnostician.c b/libide/ide-diagnostician.c
index bdb267c..e5a5e84 100644
--- a/libide/ide-diagnostician.c
+++ b/libide/ide-diagnostician.c
@@ -109,7 +109,7 @@ maybe_complete:
g_task_return_error (task, g_error_copy (error));
else if (state->active == 0)
g_task_return_pointer (task,
- ide_diagnostics_ref (state->diagnostics),
+ g_steal_pointer (&state->diagnostics),
(GDestroyNotify)ide_diagnostics_unref);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]