[anjuta/git-shell] git: Duplicate strings when returning the selected remote



commit 6ce00c059b8b7817b756159b45b6290ebe46204d
Author: James Liggett <jrliggett cox net>
Date:   Wed Jul 7 18:48:27 2010 -0700

    git: Duplicate strings when returning the selected remote

 plugins/git/git-remotes-pane.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/git/git-remotes-pane.c b/plugins/git/git-remotes-pane.c
index b1d9f65..7cfae46 100644
--- a/plugins/git/git-remotes-pane.c
+++ b/plugins/git/git-remotes-pane.c
@@ -163,5 +163,5 @@ git_remotes_pane_new (Git *plugin)
 gchar *
 git_remotes_pane_get_selected_remote (GitRemotesPane *self)
 {
-	return self->priv->selected_remote;
+	return g_strdup (self->priv->selected_remote);
 }



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