Commit 42f791cc authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

wineps: Avoid memory leaks (coverity).

parent 4ee73e69
......@@ -313,6 +313,7 @@ BOOL PSDRV_WriteSetDownloadFont(PHYSDEV dev)
UINT emsize;
if (!get_bbox(dev->hdc, &bbox, &emsize)) {
HeapFree(GetProcessHeap(), 0, ps_name);
HeapFree(GetProcessHeap(), 0, potm);
return FALSE;
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment