Fix use of freed memory.

This commit is contained in:
Robert Shearman 2003-05-13 00:30:10 +00:00 committed by Alexandre Julliard
parent 2ec955c93f
commit c00aa9985a
1 changed files with 2 additions and 1 deletions

View File

@ -7878,10 +7878,11 @@ static LRESULT LISTVIEW_NCDestroy(LISTVIEW_INFO *infoPtr)
if (infoPtr->hDefaultFont) DeleteObject(infoPtr->hDefaultFont);
if (infoPtr->clrBk != CLR_NONE) DeleteObject(infoPtr->hBkBrush);
SetWindowLongW(infoPtr->hwndSelf, 0, 0);
/* free listview info pointer*/
COMCTL32_Free(infoPtr);
SetWindowLongW(infoPtr->hwndSelf, 0, 0);
return 0;
}