mshtml: Set elem_vars to NULL when detaching.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-03-21 14:40:36 +01:00 committed by Alexandre Julliard
parent 9ceb9720e8
commit 18e0225afb
1 changed files with 2 additions and 1 deletions

View File

@ -4905,7 +4905,8 @@ void detach_document_node(HTMLDocumentNode *doc)
for(i=0; i < doc->elem_vars_cnt; i++)
heap_free(doc->elem_vars[i]);
heap_free(doc->elem_vars);
doc->elem_vars_cnt = 0;
doc->elem_vars_cnt = doc->elem_vars_size = 0;
doc->elem_vars = NULL;
if(doc->catmgr) {
ICatInformation_Release(doc->catmgr);