usp10: Free the final page.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0695368406
commit
0dbd2e37f9
|
@ -1019,7 +1019,7 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
|
|||
{
|
||||
heap_free(((ScriptCache *)*psc)->widths[i]);
|
||||
}
|
||||
for (i = 0; i < 0x10; i++)
|
||||
for (i = 0; i < NUM_PAGES; i++)
|
||||
{
|
||||
unsigned int j;
|
||||
if (((ScriptCache *)*psc)->page[i])
|
||||
|
|
|
@ -125,6 +125,8 @@
|
|||
#define GLYPH_BLOCK_MASK (GLYPH_BLOCK_SIZE - 1)
|
||||
#define GLYPH_MAX 65536
|
||||
|
||||
#define NUM_PAGES 17
|
||||
|
||||
#define GSUB_E_NOFEATURE -2
|
||||
#define GSUB_E_NOGLYPH -1
|
||||
|
||||
|
@ -169,7 +171,7 @@ typedef struct {
|
|||
OUTLINETEXTMETRICW *otm;
|
||||
SCRIPT_FONTPROPERTIES sfp;
|
||||
BOOL sfnt;
|
||||
CacheGlyphPage *page[0x11];
|
||||
CacheGlyphPage *page[NUM_PAGES];
|
||||
ABC *widths[GLYPH_MAX / GLYPH_BLOCK_SIZE];
|
||||
LPVOID GSUB_Table;
|
||||
LPVOID GDEF_Table;
|
||||
|
|
Loading…
Reference in New Issue