If there is no psInfo, it doesn't need to be cleaned up.

This commit is contained in:
Lawson Whitney 2001-12-19 18:46:49 +00:00 committed by Alexandre Julliard
parent 63e8517a9b
commit a77f8d374c
1 changed files with 1 additions and 0 deletions

View File

@ -1907,6 +1907,7 @@ static void PROPSHEET_CleanUp(HWND hwndDlg)
PropSheetInfoStr);
TRACE("\n");
if (!psInfo) return;
if (HIWORD(psInfo->ppshheader.pszCaption))
HeapFree(GetProcessHeap(), 0, (LPVOID)psInfo->ppshheader.pszCaption);