gdi32: Fix memory leak on error in PATH_WidenPath (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e3648c7a61
commit
7c57461d29
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue