From a3279ee7693d2c4340205d5084b065c0cd8a4b62 Mon Sep 17 00:00:00 2001 From: James Liggett Date: Sat, 2 Aug 2008 18:25:17 -0700 Subject: [PATCH] Make sure to free watched file names when the plugin deactivates --- plugins/git/plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/git/plugin.c b/plugins/git/plugin.c index d2dd7c39..1f30d74b 100644 --- a/plugins/git/plugin.c +++ b/plugins/git/plugin.c @@ -642,6 +642,10 @@ git_deactivate_plugin (AnjutaPlugin *plugin) anjuta_plugin_remove_watch (plugin, git_plugin->fm_watch_id, TRUE); + g_free (git_plugin->project_root_directory); + g_free (git_plugin->current_editor_filename); + g_free (git_plugin->current_fm_filename); + anjuta_shell_remove_widget (plugin->shell, git_plugin->log_viewer, NULL); gtk_widget_destroy (git_plugin->log_popup_menu); -- 2.11.4.GIT