[PATCH 2/9] Free items pointer array and root item on control destruction

Nikolay Sivov bunglehead at gmail.com
Sat Dec 5 11:39:03 CST 2009


---
 dlls/comctl32/treeview.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index d762a79..7cabef6 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -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 */
 
-- 
1.5.6.5


--=-+x/vrD8z1447jNuxoJSX--




More information about the wine-patches mailing list