Commit c00aa998 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Fix use of freed memory.

parent 2ec955c9
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment