[gnome-builder] git: don't leak branch name



commit c6dd69237f6a28c51a30bcabf764244e2f02ae2d
Author: Christian Hergert <chergert redhat com>
Date:   Wed Oct 12 19:06:10 2016 -0700

    git: don't leak branch name
    
    We take owner ship of the branch name, so let the GValue steal the
    ownership from us.

 plugins/git/ide-git-vcs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/git/ide-git-vcs.c b/plugins/git/ide-git-vcs.c
index 552e7d1..be9be82 100644
--- a/plugins/git/ide-git-vcs.c
+++ b/plugins/git/ide-git-vcs.c
@@ -433,7 +433,7 @@ ide_git_vcs_get_property (GObject    *object,
   switch (prop_id)
     {
     case PROP_BRANCH_NAME:
-      g_value_set_string (value, ide_git_vcs_get_branch_name (IDE_VCS (self)));
+      g_value_take_string (value, ide_git_vcs_get_branch_name (IDE_VCS (self)));
       break;
 
     case PROP_REPOSITORY:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]