From 01e116ee1f5603ef6adeb365f403563a684a47b4 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 8 Jan 2017 00:46:23 +0000 Subject: Clear pointer after free --- desktop/global_history.c | 1 + 1 file changed, 1 insertion(+) 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++) -- cgit v1.2.3