From 9018a76b7beb8f0f6dbd18c1ea32ed8e68419aa0 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Tue, 22 Sep 2015 01:25:39 +0200 Subject: [PATCH] fix emotion lib leak Summary: Emotion lib ref count is incremented by video_add and by emotion_object_add. This ref count should be also decremented when the object returned by video_add is destroyed. An other way to fix this leak is to remove emotion_init from video_add since it's already initialised by emotion_object_add. Projects: #rage Differential Revision: https://phab.enlightenment.org/D3060 Signed-off-by: Cedric BAIL --- src/bin/video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/video.c b/src/bin/video.c index d6b3f57..292c49d 100644 --- a/src/bin/video.c +++ b/src/bin/video.c @@ -351,6 +351,8 @@ _smart_del(Evas_Object *obj) if (sd->restart_job) ecore_job_del(sd->restart_job); _parent_sc.del(obj); + + emotion_shutdown(); } static void