Commit a172cc6c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

gdiplus: Free dash_pattern_scaled (Coverity).

parent 9bbbd2a9
...@@ -2109,7 +2109,10 @@ static void widen_dashed_figure(GpPath *path, GpPen *pen, int start, int end, ...@@ -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]; dash_pattern_scaled[i] = pen->width * dash_pattern[i];
tmp_points = heap_alloc_zero((end - start + 2) * sizeof(GpPoint)); 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) if (!closed)
draw_start_cap = 1; draw_start_cap = 1;
......
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