comctl32/datetime: Free internal data completely on control destruction.
This commit is contained in:
parent
bd8fc9c474
commit
7d6412c82d
|
@ -1360,6 +1360,9 @@ DATETIME_Destroy (DATETIME_INFO *infoPtr)
|
||||||
if (infoPtr->hMonthCal)
|
if (infoPtr->hMonthCal)
|
||||||
DestroyWindow(infoPtr->hMonthCal);
|
DestroyWindow(infoPtr->hMonthCal);
|
||||||
SetWindowLongPtrW( infoPtr->hwndSelf, 0, 0 ); /* clear infoPtr */
|
SetWindowLongPtrW( infoPtr->hwndSelf, 0, 0 ); /* clear infoPtr */
|
||||||
|
Free (infoPtr->buflen);
|
||||||
|
Free (infoPtr->fieldRect);
|
||||||
|
Free (infoPtr->fieldspec);
|
||||||
Free (infoPtr);
|
Free (infoPtr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue