projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[UXTHEME] Apply Wine commit 7aae2d2 by Mark Harmstone: Free properties when theme...
[reactos.git]
/
reactos
/
dll
/
win32
/
uxtheme
/
msstyles.c
diff --git
a/reactos/dll/win32/uxtheme/msstyles.c
b/reactos/dll/win32/uxtheme/msstyles.c
index
f2f98c5
..
ee14fa8
100644
(file)
--- a/
reactos/dll/win32/uxtheme/msstyles.c
+++ b/
reactos/dll/win32/uxtheme/msstyles.c
@@
-199,6
+199,13
@@
void MSSTYLES_CloseThemeFile(PTHEME_FILE tf)
tf->classes = pcls->next;
while(pcls->partstate) {
PTHEME_PARTSTATE ps = pcls->partstate;
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);
}
pcls->partstate = ps->next;
HeapFree(GetProcessHeap(), 0, ps);
}