[geany/geany-plugins] 0a61a7: debugger: Don't try destroying a NULL GHashTable
Colomban Wendling
git-noreply at xxxxx
Sun Nov 15 17:28:18 UTC 2015
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 25 Oct 2014 15:45:01 UTC
Commit: 0a61a7698f7519530cff60ccbdf6f16823377478
https://github.com/geany/geany-plugins/commit/0a61a7698f7519530cff60ccbdf6f16823377478
Log Message:
-----------
debugger: Don't try destroying a NULL GHashTable
Modified Paths:
--------------
debugger/src/debug.c
Modified: debugger/src/debug.c
7 lines changed, 5 insertions(+), 2 deletions(-)
===================================================================
@@ -832,8 +832,11 @@ static void on_debugger_exited (int code)
read_only_pages = NULL;
/* clear and destroy calltips cache */
- g_hash_table_destroy(calltips);
- calltips = NULL;
+ if (calltips)
+ {
+ g_hash_table_destroy(calltips);
+ calltips = NULL;
+ }
/* enable widgets */
enable_sensitive_widgets(TRUE);
--------------
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