diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c index 780751b95f9..b557314c556 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); }