[PATCH 5/9] Free internal data completely on control destruction

Nikolay Sivov bunglehead at gmail.com
Sat Dec 5 12:42:19 CST 2009


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

diff --git a/dlls/comctl32/datetime.c b/dlls/comctl32/datetime.c
index a7b433d..c240d4f 100644
--- a/dlls/comctl32/datetime.c
+++ b/dlls/comctl32/datetime.c
@@ -1360,6 +1360,9 @@ DATETIME_Destroy (DATETIME_INFO *infoPtr)
     if (infoPtr->hMonthCal) 
         DestroyWindow(infoPtr->hMonthCal);
     SetWindowLongPtrW( infoPtr->hwndSelf, 0, 0 ); /* clear infoPtr */
+    Free (infoPtr->buflen);
+    Free (infoPtr->fieldRect);
+    Free (infoPtr->fieldspec);
     Free (infoPtr);
     return 0;
 }
-- 
1.5.6.5


--=-cBB6G6XQ2xe93r3Q/rmC--




More information about the wine-patches mailing list