comctl32/datetime: Free internal data completely on control destruction.

This commit is contained in:
Nikolay Sivov 2009-12-05 21:42:19 +03:00 committed by Alexandre Julliard
parent bd8fc9c474
commit 7d6412c82d
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}