Browser window: Clean up cert chains when bw is destroyed.

This commit is contained in:
Michael Drake 2020-03-12 17:35:28 +00:00
parent c5aaf45d8e
commit 82e74efeab
1 changed files with 5 additions and 0 deletions

View File

@ -1788,6 +1788,11 @@ static void browser_window_destroy_internal(struct browser_window *bw)
browser_window_history_destroy(bw);
cert_chain_free(bw->current_cert_chain);
cert_chain_free(bw->loading_cert_chain);
bw->current_cert_chain = NULL;
bw->loading_cert_chain = NULL;
free(bw->name);
free(bw->status.text);
bw->status.text = NULL;