Author: akhaldi
Date: Sat Apr 25 12:20:24 2015
New Revision: 67409
URL:
http://svn.reactos.org/svn/reactos?rev=67409&view=rev
Log:
[UXTHEME] Apply Wine commit 7aae2d2 by Mark Harmstone: Free properties when theme file
closed.
Modified:
trunk/reactos/dll/win32/uxtheme/msstyles.c
Modified: trunk/reactos/dll/win32/uxtheme/msstyles.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/msstyles…
==============================================================================
--- trunk/reactos/dll/win32/uxtheme/msstyles.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/uxtheme/msstyles.c [iso-8859-1] Sat Apr 25 12:20:24 2015
@@ -199,6 +199,13 @@
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);
}