diff options
author | JunsuChoi <jsuya.choi@samsung.com> | 2019-10-29 13:17:05 +0900 |
---|---|---|
committer | JunsuChoi <jsuya.choi@samsung.com> | 2019-10-29 13:17:06 +0900 |
commit | cf61adaff17a698085655acac889c804cd2895a6 (patch) | |
tree | 507263f42ea2895dfd9ef8dfb3bc31313d1f05d7 /src/modules | |
parent | 135c69b23c7d091bb114022f3eb0c1788758a67c (diff) | |
download | efl-cf61adaff17a698085655acac889c804cd2895a6.tar.gz |
vg_common_svg: Free node tree for memory leak after eet write.
Summary:
The node tree created from vg_common_svg_create_svg_node is not used after eet_data_write().
Therefore, to prevent memory leaks, free the node tree.
Test Plan: N/A
Reviewers: Hermet, smohanty, kimcinoo
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10443
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/evas/vg_savers/eet/evas_vg_save_eet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/vg_savers/eet/evas_vg_save_eet.c b/src/modules/evas/vg_savers/eet/evas_vg_save_eet.c index a7a1bf36ae..96fa7f4150 100644 --- a/src/modules/evas/vg_savers/eet/evas_vg_save_eet.c +++ b/src/modules/evas/vg_savers/eet/evas_vg_save_eet.c @@ -28,6 +28,8 @@ evas_vg_save_file_eet(Vg_File_Data *evg_data, const char *file, const char *key, eet_data_write(ef, svg_node_eet, key, root, compress); eet_close(ef); + vg_common_svg_node_free(root); + return EVAS_LOAD_ERROR_NONE; } |