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:
Marcus Meissner 2017-07-23 22:25:19 +02:00 committed by Alexandre Julliard
parent 9bbbd2a905
commit a172cc6c6e

View file

@ -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;