Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Thu, 18 Jun 2015 15:18:22 UTC Commit: c8162826eb59bef53ef39f163d173dfef16be33f https://github.com/geany/geany-plugins/commit/c8162826eb59bef53ef39f163d173d...
Log Message: ----------- debugger: Remove a few dangling pointers
Those should not cause any problem in real situations, but resetting them properly is safer as it doesn't depend on a very specific sequence of events.
Modified Paths: -------------- debugger/src/envtree.c
Modified: debugger/src/envtree.c 4 lines changed, 3 insertions(+), 1 deletions(-) =================================================================== @@ -296,6 +296,7 @@ static void on_value_changed(GtkCellRendererText *renderer, gchar *path, gchar * g_free(striped);
gtk_tree_path_free(being_edited_value); + being_edited_value = NULL; }
/* @@ -331,8 +332,9 @@ static void on_value_editing_cancelled(GtkCellRenderer *renderer, gpointer user_
g_object_set (renderer_value, "editable", FALSE, NULL);
- gtk_tree_path_free(being_edited_value); gtk_tree_path_free(empty_path); + gtk_tree_path_free(being_edited_value); + being_edited_value = NULL; }
/*
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).