summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubhransuSekhar Mohanty <sub.mohanty@samsung.com>2019-07-25 15:17:05 +0900
committerHermet Park <hermetpark@gmail.com>2019-07-25 15:19:41 +0900
commitdd484a54dca4baf7421f9c633ed1b5630c0efd66 (patch)
tree78739481383e09f7a0de2da999117c60a02e443d /src
parent5f1f361c088fe5e2d7bf6efc51921e9bb769c037 (diff)
efl_canvas_vg svg: free the svg tree returned by eet_data_read()
The eet_data_read() api creates the structure by referencing the wwt data structure and reading from eet file. So the structure should be deleted by the user of the function. As eet_data_read() api documentation dosen't specify about the ownership I guess we need to free this structure to avoid memory leak.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c b/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c
index f0bde2e5ca..8d04aec0f1 100644
--- a/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c
+++ b/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c
@@ -36,7 +36,9 @@ evas_vg_load_file_open_eet(Eina_File *file, const char *key, int *error EINA_UNU
36 { 36 {
37 *error = EVAS_LOAD_ERROR_NONE; 37 *error = EVAS_LOAD_ERROR_NONE;
38 } 38 }
39 return vg_common_svg_create_vg_node(node); 39 Vg_File_Data *vg_data = vg_common_svg_create_vg_node(node);
40 vg_common_svg_node_free(node);
41 return vg_data;
40} 42}
41 43
42static Eina_Bool 44static Eina_Bool