[anjuta/git-shell] git: Free selection lists when deleting branches



commit a89cd2a09ae04d5190c6220d1097b40aee47f698
Author: James Liggett <jrliggett cox net>
Date:   Thu Jun 10 00:09:36 2010 -0700

    git: Free selection lists when deleting branches

 plugins/git/git-delete-branches-pane.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/git-delete-branches-pane.c b/plugins/git/git-delete-branches-pane.c
index a7e0c3a..4b49109 100644
--- a/plugins/git/git-delete-branches-pane.c
+++ b/plugins/git/git-delete-branches-pane.c
@@ -55,6 +55,8 @@ on_ok_button_clicked (GtkButton *button, GitDeleteBranchesPane *self)
 			                                                      FALSE,
 			                                                      gtk_toggle_button_get_active (require_merged_check));
 
+			git_command_free_string_list (selected_local_branches);
+
 			g_signal_connect (G_OBJECT (local_delete_command), 
 			                  "command-finished",
 			                  G_CALLBACK (g_object_unref),
@@ -71,6 +73,8 @@ on_ok_button_clicked (GtkButton *button, GitDeleteBranchesPane *self)
 			                                                       TRUE,
 			                                                       gtk_toggle_button_get_active (require_merged_check));
 
+			git_command_free_string_list (selected_remote_branches);
+
 			g_signal_connect (G_OBJECT (remote_delete_command), "command-finished",
 			                  G_CALLBACK (g_object_unref),
 			                  NULL);



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