Mark Harmstone : uxtheme: Free properties when theme file closed.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 13 07:42:01 CDT 2015
Module: wine
Branch: master
Commit: 7aae2d2eae5157f0fb40ace1a93a8634672d23cb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7aae2d2eae5157f0fb40ace1a93a8634672d23cb
Author: Mark Harmstone <hellas at burntcomma.com>
Date: Sat Apr 11 18:51:34 2015 +0100
uxtheme: Free properties when theme file closed.
---
dlls/uxtheme/msstyles.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c
index 780751b..b557314 100644
--- a/dlls/uxtheme/msstyles.c
+++ b/dlls/uxtheme/msstyles.c
@@ -209,6 +209,13 @@ void MSSTYLES_CloseThemeFile(PTHEME_FILE tf)
tf->classes = pcls->next;
while(pcls->partstate) {
PTHEME_PARTSTATE ps = pcls->partstate;
+
+ while(ps->properties) {
+ PTHEME_PROPERTY prop = ps->properties;
+ ps->properties = prop->next;
+ HeapFree(GetProcessHeap(), 0, prop);
+ }
+
pcls->partstate = ps->next;
HeapFree(GetProcessHeap(), 0, ps);
}
More information about the wine-cvs
mailing list