wineps: Avoid memory leaks (coverity).
This commit is contained in:
parent
4ee73e69b5
commit
42f791ccd5
|
@ -313,9 +313,10 @@ BOOL PSDRV_WriteSetDownloadFont(PHYSDEV dev)
|
|||
UINT emsize;
|
||||
|
||||
if (!get_bbox(dev->hdc, &bbox, &emsize)) {
|
||||
HeapFree(GetProcessHeap(), 0, potm);
|
||||
return FALSE;
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, ps_name);
|
||||
HeapFree(GetProcessHeap(), 0, potm);
|
||||
return FALSE;
|
||||
}
|
||||
if(!is_room_for_font(physDev))
|
||||
PSDRV_EmptyDownloadList(dev, TRUE);
|
||||
|
||||
|
|
|
@ -385,6 +385,7 @@ INT PSDRV_WriteHeader( PHYSDEV dev, LPCWSTR title )
|
|||
strlen(escaped_title) + 30 );
|
||||
if(!buf) {
|
||||
WARN("HeapAlloc failed\n");
|
||||
HeapFree(GetProcessHeap(), 0, escaped_title);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue