[anjuta] git: Free progress data when the push command finishes



commit 64e68a2a860a66a113abdb3a26a55458135b3f76
Author: James Liggett <jrliggett cox net>
Date:   Thu Jun 11 17:05:05 2009 -0700

    git: Free progress data when the push command finishes

 plugins/git/git-push-dialog.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/git/git-push-dialog.c b/plugins/git/git-push-dialog.c
index 8ad0ced..b49cd13 100644
--- a/plugins/git/git-push-dialog.c
+++ b/plugins/git/git-push-dialog.c
@@ -26,7 +26,7 @@
 
 static void
 on_push_command_finished (AnjutaCommand *command, guint return_code,
-							Git *plugin)
+						  Git *plugin)
 {
 	AnjutaStatus *status;
 	
@@ -112,6 +112,10 @@ on_push_dialog_response (GtkDialog *dialog, gint response_id,
 		g_signal_connect (G_OBJECT (push_command), "command-finished",
 		                  G_CALLBACK (on_push_command_finished),
 		                  data->plugin);
+		
+		g_signal_connect_swapped (G_OBJECT (push_command), "command-finished",
+								  G_CALLBACK (git_progress_data_free),
+								  progress_data);
 
 		anjuta_command_start (ANJUTA_COMMAND (push_command));
 	}



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