mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
wineps.drv: Fix memory leak.
This commit is contained in:
parent
1ac7096728
commit
0652bbc3d5
1 changed files with 6 additions and 3 deletions
|
@ -258,15 +258,18 @@ BOOL PSDRV_WriteSetDownloadFont(PHYSDEV dev)
|
|||
|
||||
assert(physDev->font.fontloc == Download);
|
||||
|
||||
if (!GetObjectW( GetCurrentObject(dev->hdc, OBJ_FONT), sizeof(lf), &lf ))
|
||||
return FALSE;
|
||||
|
||||
potm = HeapAlloc(GetProcessHeap(), 0, len);
|
||||
if (!potm)
|
||||
return FALSE;
|
||||
|
||||
GetOutlineTextMetricsA(dev->hdc, len, potm);
|
||||
|
||||
get_download_name(dev, potm, &ps_name);
|
||||
physDev->font.fontinfo.Download = is_font_downloaded(physDev, ps_name);
|
||||
|
||||
if (!GetObjectW( GetCurrentObject(dev->hdc, OBJ_FONT), sizeof(lf), &lf ))
|
||||
return FALSE;
|
||||
|
||||
ppem = calc_ppem_for_height(dev->hdc, lf.lfHeight);
|
||||
|
||||
/* Retrieve the world -> device transform */
|
||||
|
|
Loading…
Reference in a new issue