=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: comctl32: Also free pszHeaderTitle and pszHeaderSubTitle in DestroyPropertySheetPage .

Alexandre Julliard julliard at winehq.org
Thu Dec 29 12:15:50 CST 2011


Module: wine
Branch: master
Commit: 9e0517ac6dea9e171564a2d4ae4cb868bdf76e3a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9e0517ac6dea9e171564a2d4ae4cb868bdf76e3a

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Dec 29 02:51:18 2011 +0100

comctl32: Also free pszHeaderTitle and pszHeaderSubTitle in DestroyPropertySheetPage.

---

 dlls/comctl32/propsheet.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index e6d2d30..6f620c6 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -3063,6 +3063,12 @@ BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage)
   if ((psp->dwFlags & PSP_USETITLE) && !IS_INTRESOURCE( 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);
 
   return TRUE;




More information about the wine-cvs mailing list