[anjuta] git: Free the clone command object in IAnjutaVcs::checkout



commit 073dd33917aedda5f7ebbcef0396db97cfc5b5b6
Author: James Liggett <jrliggett cox net>
Date:   Sun Aug 9 14:38:58 2009 -0700

    git: Free the clone command object in IAnjutaVcs::checkout

 plugins/git/git-vcs-interface.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/git-vcs-interface.c b/plugins/git/git-vcs-interface.c
index f0e81ee..08fa1c9 100644
--- a/plugins/git/git-vcs-interface.c
+++ b/plugins/git/git-vcs-interface.c
@@ -97,6 +97,10 @@ git_ivcs_checkout (IAnjutaVcs *obj,
 	                  G_CALLBACK (on_git_command_info_arrived),
 	                  plugin);
 
+	g_signal_connect (G_OBJECT (clone_command), "command-finished",
+	                  G_CALLBACK (g_object_unref),
+	                  NULL);
+
 	if (cancel)
 	{
 		g_signal_connect_swapped (G_OBJECT (cancel), "cancelled",



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