hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=515efc710b8f8a1699e65747d2b882fd1c2c583e
commit 515efc710b8f8a1699e65747d2b882fd1c2c583e Author: ChunEon Park <[email protected]> Date: Sat Jul 19 15:50:40 2014 +0900 fixed some memory leaks. --- src/bin/config_data.c | 4 +++- src/bin/edj_viewer.c | 5 ++--- src/bin/syntax_helper.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bin/config_data.c b/src/bin/config_data.c index b2a5ef8..2b9db44 100644 --- a/src/bin/config_data.c +++ b/src/bin/config_data.c @@ -47,7 +47,9 @@ config_edj_path_update(config_data *cd) snprintf(buf, (ext - file) + 1, "%s", file); else strncpy(buf, file, sizeof(buf)); - sprintf(edj_path, "%s/%s.edj", ecore_file_dir_get(cd->edc_path), buf); + char *filedir = ecore_file_dir_get(cd->edc_path); + sprintf(edj_path, "%s/%s.edj", filedir, buf); + free(filedir); eina_stringshare_replace(&cd->edj_path, edj_path); } diff --git a/src/bin/edj_viewer.c b/src/bin/edj_viewer.c index 0413ce1..1b377bc 100644 --- a/src/bin/edj_viewer.c +++ b/src/bin/edj_viewer.c @@ -150,7 +150,6 @@ edj_changed_cb(void *data, int type EINA_UNUSED, void *event) { vd->del_cb(vd->data); view_term(vd); - vd->edj_monitor = NULL; EINA_LOG_ERR("Failed to load edj file \"%s\"", config_edj_path_get()); return ECORE_CALLBACK_DONE; } @@ -292,8 +291,8 @@ view_term(view_data *vd) { if (!vd) return; - if (vd->group_name) eina_stringshare_del(vd->group_name); - if (vd->part_name) eina_stringshare_del(vd->part_name); + eina_stringshare_del(vd->group_name); + eina_stringshare_del(vd->part_name); if (vd->part_obj) evas_object_event_callback_del(vd->part_obj, EVAS_CALLBACK_DEL, diff --git a/src/bin/syntax_helper.c b/src/bin/syntax_helper.c index d0043ef..456ae0f 100644 --- a/src/bin/syntax_helper.c +++ b/src/bin/syntax_helper.c @@ -44,6 +44,7 @@ syntax_term(syntax_helper *sh) ecore_timer_del(sh->buf_flush_timer); eina_strbuf_free(sh->strbuf); + free(sh); } color_data * --
