emotion: fix memory leak
authorwonguk.jeong <wonguk.jeong@samsung.com>
Tue, 1 Apr 2014 09:59:16 +0000 (18:59 +0900)
committerCedric BAIL <cedric.bail@free.fr>
Tue, 1 Apr 2014 13:00:13 +0000 (22:00 +0900)
engine instance handle was not free'd in emotion_engine_instance_del()

@fix

Reviewers: raster, cedric

CC: seoz, cedric
Differential Revision: https://phab.enlightenment.org/D672

Signed-off-by: Cedric BAIL <cedric.bail@free.fr>
src/lib/emotion/emotion_modules.c

index afbf941..6a362a2 100644 (file)
@@ -409,6 +409,7 @@ emotion_engine_instance_del(Emotion_Engine_Instance *inst)
 {
    EINA_SAFETY_ON_NULL_RETURN(inst);
    inst->api->del(inst->data);
+   free(inst);
 }
 
 Eina_Bool