rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=0f9a837747cd6b934ac9ab35bf8724fd72b14e37

commit 0f9a837747cd6b934ac9ab35bf8724fd72b14e37
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Thu Jan 28 15:20:18 2016 +0200

    sound_editor: fix memory leak on select sound or tone
    
    Change-Id: I3eb40d275554af023ba3f7a8a0f887287d45cb88
---
 src/bin/ui/editors/sound_editor.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/editors/sound_editor.c 
b/src/bin/ui/editors/sound_editor.c
index efab658..33e8a5b 100644
--- a/src/bin/ui/editors/sound_editor.c
+++ b/src/bin/ui/editors/sound_editor.c
@@ -143,12 +143,14 @@ _grid_sel_sample(void *data,
    if (!res->used_in) elm_object_disabled_set(edit->btn_del, false);
 
    evas_object_smart_callback_call(ap.win, SIGNAL_SOUND_SELECT, snd_data);
+   free(snd_data);
 }
 
 static void
 _grid_sel_tone(void *data,
                Evas_Object *obj __UNUSED__,
-               void *event_info __UNUSED__) {
+               void *event_info __UNUSED__)
+{
    Sound_Editor *edit = (Sound_Editor *)data;
    Selected_Sound_Data *snd_data = mem_calloc(1, sizeof(Selected_Sound_Data));
    External_Resource *res;
@@ -167,6 +169,7 @@ _grid_sel_tone(void *data,
    if (!res->used_in) elm_object_disabled_set(edit->btn_del, false);
 
    evas_object_smart_callback_call(ap.win, SIGNAL_SOUND_SELECT, snd_data);
+   free(snd_data);
 }
 
 static void

-- 


Reply via email to