From c85b395beb2e4b5fb0696c09eb38c69963758eaa Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Thu, 1 Apr 2021 13:02:48 +0200 Subject: [PATCH] evas vg: Fixed build error. Move free() function calls to proper block of code. Change-Id: I7bd3e56b79470facae84035b84114ff0d93a3e5f --- src/lib/evas/canvas/efl_canvas_vg_shape.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/canvas/efl_canvas_vg_shape.c b/src/lib/evas/canvas/efl_canvas_vg_shape.c index 51ad4d0..d8ab13e 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_shape.c +++ b/src/lib/evas/canvas/efl_canvas_vg_shape.c @@ -1128,13 +1128,12 @@ evas_vg_shape_path_set(Evas_Vg_Shape *obj, const Evas_Vg_Path_Command *op, const } tvg_shape_append_path(_get_tvg_shape(obj), commands, cmd_length - 1, pts, pts_length / 2); + free(pts); + free(commands); #else efl_gfx_path_set(obj, (const Efl_Gfx_Path_Command *)op, points); #endif efl_canvas_vg_node_change(obj); - - free(pts); - free(commands); } EAPI void -- 2.7.4