[anjuta/git-shell] git: Leak fixes in GitRemoteListCommand



commit 062a39c9e6a2f1863a6a9a754f5a50cacbc0dae2
Author: James Liggett <jrliggett cox net>
Date:   Mon Jul 19 13:57:23 2010 -0700

    git: Leak fixes in GitRemoteListCommand

 plugins/git/git-remote-list-command.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/git/git-remote-list-command.c b/plugins/git/git-remote-list-command.c
index 1ec84af..d9deccb 100644
--- a/plugins/git/git-remote-list-command.c
+++ b/plugins/git/git-remote-list-command.c
@@ -86,8 +86,6 @@ git_remote_list_command_start_automatic_monitor (AnjutaCommand *command)
 	                             NULL);
 	git_config_file = g_file_new_for_path (git_config_path);
 
-	g_free (git_config_path);
-
 	self->priv->file_monitor = g_file_monitor_file (git_config_file, 0, NULL, 
 	                                                NULL);
 
@@ -95,6 +93,8 @@ git_remote_list_command_start_automatic_monitor (AnjutaCommand *command)
 	                  G_CALLBACK (on_file_monitor_changed),
 	                  self);
 
+	g_free (git_config_path);
+	g_free (working_directory);
 	g_object_unref (git_config_file);
 
 	return TRUE;



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