summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-08 00:46:23 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-08 00:46:23 +0000
commit01e116ee1f5603ef6adeb365f403563a684a47b4 (patch)
tree5c5505c081ad6192cdfef9ba0483f1ab76bf189f /desktop
parentae8959fa8b46fd21100b72669dcd4da03d91fd97 (diff)
downloadnetsurf-01e116ee1f5603ef6adeb365f403563a684a47b4.tar.gz
netsurf-01e116ee1f5603ef6adeb365f403563a684a47b4.tar.bz2
Clear pointer after free
Diffstat (limited to 'desktop')
-rw-r--r--desktop/global_history.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c
index b6f488228..a19349f51 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -803,6 +803,7 @@ nserror global_history_fini(void)
/* Destroy the global history treeview */
err = treeview_destroy(gh_ctx.tree);
+ gh_ctx.tree = NULL;
/* Free global history treeview entry fields */
for (i = 0; i < N_FIELDS; i++)