From f6fe579b95f3c4d15e2a03cf11f6d60d413e0fb6 Mon Sep 17 00:00:00 2001 From: James Liggett Date: Fri, 25 Apr 2008 23:51:27 -0700 Subject: [PATCH] Don't leak the log message in commit and merge dialogs. --- plugins/git/git-commit-dialog.c | 1 + plugins/git/git-merge-dialog.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/git/git-commit-dialog.c b/plugins/git/git-commit-dialog.c index b93eeab3..65c0ac93 100644 --- a/plugins/git/git-commit-dialog.c +++ b/plugins/git/git-commit-dialog.c @@ -82,6 +82,7 @@ on_commit_dialog_response (GtkDialog *dialog, gint response_id, log, selected_paths); + g_free (log); git_command_free_path_list (selected_paths); create_message_view (data->plugin); diff --git a/plugins/git/git-merge-dialog.c b/plugins/git/git-merge-dialog.c index 3ca967b9..938ebec4 100644 --- a/plugins/git/git-merge-dialog.c +++ b/plugins/git/git-merge-dialog.c @@ -85,6 +85,8 @@ on_merge_dialog_response (GtkDialog *dialog, gint response_id, if (prompt_response == GTK_RESPONSE_NO) return; } + + g_free (log); } gtk_combo_box_get_active_iter (GTK_COMBO_BOX (branch_combo), &iter); -- 2.11.4.GIT