comctl32: Also free pszHeaderTitle and pszHeaderSubTitle in DestroyPropertySheetPage.

This commit is contained in:
André Hentschel 2011-12-29 02:51:18 +01:00 committed by Alexandre Julliard
parent 663bc47602
commit 9e0517ac6d
1 changed files with 6 additions and 0 deletions

View File

@ -3063,6 +3063,12 @@ BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage)
if ((psp->dwFlags & PSP_USETITLE) && !IS_INTRESOURCE( psp->pszTitle )) if ((psp->dwFlags & PSP_USETITLE) && !IS_INTRESOURCE( psp->pszTitle ))
Free ((LPVOID)psp->pszTitle); Free ((LPVOID)psp->pszTitle);
if ((psp->dwFlags & PSP_USEHEADERTITLE) && !IS_INTRESOURCE( psp->pszHeaderTitle ))
Free ((LPVOID)psp->pszHeaderTitle);
if ((psp->dwFlags & PSP_USEHEADERSUBTITLE) && !IS_INTRESOURCE( psp->pszHeaderSubTitle ))
Free ((LPVOID)psp->pszHeaderSubTitle);
Free(hPropPage); Free(hPropPage);
return TRUE; return TRUE;