mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-25 15:59:36 +03:00
Clear pointer after free
This commit is contained in:
parent
ae8959fa8b
commit
01e116ee1f
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user