[anjuta] Fix another crash when updating project files



commit 9e7a8ace26095542a2d088b3abb387ea8a1dfd5a
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sun Aug 20 13:48:02 2017 +0200

    Fix another crash when updating project files
    
    I get a crash when running 'git checkout master~1000; git checkout master'.
    It was due to the git plugins which keeps a common hash table of diff commands.
    This table was filled by a first status command and was updated by a second
    status command called after the first one but before all first diff commands
    have been completed.

 plugins/git/git-status-pane.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/git-status-pane.c b/plugins/git/git-status-pane.c
index 62eee97..1a17322 100644
--- a/plugins/git/git-status-pane.c
+++ b/plugins/git/git-status-pane.c
@@ -568,6 +568,7 @@ git_status_pane_clear (GitStatusPane *self)
 
        g_hash_table_remove_all (self->priv->selected_commit_items);
        g_hash_table_remove_all (self->priv->selected_not_updated_items);
+       g_hash_table_remove_all (self->priv->diff_commands);
 }
 
 static void


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