uxtheme: Free properties when theme file closed.

This commit is contained in:
Mark Harmstone 2015-04-11 18:51:34 +01:00 committed by Alexandre Julliard
parent 444bc3556d
commit 7aae2d2eae
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}