diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-01-08 00:46:23 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-01-08 00:46:23 +0000 |
commit | 01e116ee1f5603ef6adeb365f403563a684a47b4 (patch) | |
tree | 5c5505c081ad6192cdfef9ba0483f1ab76bf189f /desktop/global_history.c | |
parent | ae8959fa8b46fd21100b72669dcd4da03d91fd97 (diff) | |
download | netsurf-01e116ee1f5603ef6adeb365f403563a684a47b4.tar.gz netsurf-01e116ee1f5603ef6adeb365f403563a684a47b4.tar.bz2 |
Clear pointer after free
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r-- | desktop/global_history.c | 1 |
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++) |