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:
Nikolay Sivov 2009-12-05 20:39:03 +03:00 committed by Alexandre Julliard
parent 59d250c4a4
commit 6d989feff9
1 changed files with 4 additions and 0 deletions

View File

@ -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 */