[UXTHEME] Apply Wine commit 7aae2d2 by Mark Harmstone: Free properties when theme file closed.

svn path=/trunk/; revision=67409
This commit is contained in:
Amine Khaldi
2015-04-25 12:20:24 +00:00
parent 51b0710f1e
commit b5956bd4a5
+7
View File
@@ -199,6 +199,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);
}