mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 23:42:06 +00:00
gdiplus: Free dash_pattern_scaled (Coverity).
Signed-off-by: Marcus Meissner <marcus@jet.franken.de> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9bbbd2a905
commit
a172cc6c6e
|
@ -2109,7 +2109,10 @@ static void widen_dashed_figure(GpPath *path, GpPen *pen, int start, int end,
|
|||
dash_pattern_scaled[i] = pen->width * dash_pattern[i];
|
||||
|
||||
tmp_points = heap_alloc_zero((end - start + 2) * sizeof(GpPoint));
|
||||
if (!tmp_points) return; /* FIXME */
|
||||
if (!tmp_points) {
|
||||
heap_free(dash_pattern_scaled);
|
||||
return; /* FIXME */
|
||||
}
|
||||
|
||||
if (!closed)
|
||||
draw_start_cap = 1;
|
||||
|
|
Loading…
Reference in a new issue