Commit 6d989fef authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/treeview: Free items pointer array and root item on control destruction.

Two issues here: item pointers array wasn't freed, root item data wasn't freed. Found by Valgrind.
parent 59d250c4
...@@ -5064,7 +5064,11 @@ TREEVIEW_Destroy(TREEVIEW_INFO *infoPtr) ...@@ -5064,7 +5064,11 @@ TREEVIEW_Destroy(TREEVIEW_INFO *infoPtr)
{ {
TRACE("\n"); TRACE("\n");
/* free item data */
TREEVIEW_RemoveTree(infoPtr); TREEVIEW_RemoveTree(infoPtr);
/* root isn't freed with other items */
TREEVIEW_FreeItem(infoPtr, infoPtr->root);
DPA_Destroy(infoPtr->items);
/* tool tip is automatically destroyed: we are its owner */ /* tool tip is automatically destroyed: we are its owner */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment