Commit 7c57461d authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

gdi32: Fix memory leak on error in PATH_WidenPath (Coverity).

parent e3648c7a
......@@ -1749,6 +1749,9 @@ static struct gdi_path *PATH_WidenPath(DC *dc)
break;
default:
ERR("Got path flag %c\n", flat_path->flags[i]);
for(i = 0; i < numStrokes; i++) free_gdi_path(pStrokes[i]);
HeapFree(GetProcessHeap(), 0, pStrokes);
free_gdi_path(flat_path);
return NULL;
}
}
......
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