Aric Stewart : usp10: Free default_language items when freeing script cache .
Alexandre Julliard
julliard at winehq.org
Fri Feb 8 14:13:46 CST 2013
Module: wine
Branch: master
Commit: c8b5a16f0c2177746d6d4358f319f5e1e0f93234
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c8b5a16f0c2177746d6d4358f319f5e1e0f93234
Author: Aric Stewart <aric at codeweavers.com>
Date: Fri Feb 8 09:45:55 2013 -0600
usp10: Free default_language items when freeing script cache.
---
dlls/usp10/usp10.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index a08b047..0b14e9e 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -1060,6 +1060,9 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
heap_free(((ScriptCache *)*psc)->scripts[i].languages[j].features[k].lookups);
heap_free(((ScriptCache *)*psc)->scripts[i].languages[j].features);
}
+ for (j = 0; j < ((ScriptCache *)*psc)->scripts[i].default_language.feature_count; j++)
+ heap_free(((ScriptCache *)*psc)->scripts[i].default_language.features[j].lookups);
+ heap_free(((ScriptCache *)*psc)->scripts[i].default_language.features);
heap_free(((ScriptCache *)*psc)->scripts[i].languages);
}
heap_free(((ScriptCache *)*psc)->scripts);
More information about the wine-cvs
mailing list