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.
This commit is contained in:
parent
59d250c4a4
commit
6d989feff9
|
@ -5064,7 +5064,11 @@ TREEVIEW_Destroy(TREEVIEW_INFO *infoPtr)
|
|||
{
|
||||
TRACE("\n");
|
||||
|
||||
/* free item data */
|
||||
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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue