[gnome-builder/gnome-builder-3-18] vala: steal string from GString
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] vala: steal string from GString
- Date: Tue, 13 Oct 2015 07:31:14 +0000 (UTC)
commit 7692183c36651c0947832e9b3fb6379363a6b92f
Author: Christian Hergert <christian hergert me>
Date: Thu Oct 1 16:54:28 2015 -0700
vala: steal string from GString
plugins/vala-pack/ide-vala-completion-item.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/vala-pack/ide-vala-completion-item.vala b/plugins/vala-pack/ide-vala-completion-item.vala
index 3b78c19..56f2731 100644
--- a/plugins/vala-pack/ide-vala-completion-item.vala
+++ b/plugins/vala-pack/ide-vala-completion-item.vala
@@ -133,7 +133,8 @@ namespace Ide
str.append (this.symbol.name);
}
- this.label = str.str;
+ /* Steal the string instead of strdup */
+ this.label = (owned)str.str;
}
public string get_markup () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]