[geany/geany-plugins] b2152b: debugger: Fix crash after reloading the plugin

Colomban Wendling git-noreply at xxxxx
Sat Jul 4 22:01:14 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 18 Jun 2015 15:18:20 UTC
Commit:      b2152ba83d040725248072497a1e67e2e08d07d7
             https://github.com/geany/geany-plugins/commit/b2152ba83d040725248072497a1e67e2e08d07d7

Log Message:
-----------
debugger: Fix crash after reloading the plugin

Closes #229.


Modified Paths:
--------------
    debugger/src/dconfig.c
    debugger/src/envtree.c

Modified: debugger/src/dconfig.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -482,6 +482,7 @@ void config_destroy(void)
 	if(keyfile_project)
 	{
 		g_key_file_free(keyfile_project);
+		keyfile_project = NULL;
 	}
 }
 


Modified: debugger/src/envtree.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -454,6 +454,7 @@ GtkWidget* envtree_init(void)
 void envtree_destroy(void)
 {
 	gtk_tree_row_reference_free(empty_row);
+	empty_row = NULL;
 }
 
 /*



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list