From: cedric Date: Fri, 5 Aug 2011 08:51:10 +0000 (+0000) Subject: emotion: fix some memory leak. X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~199 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3278a681beeea837582bd025529ca75d5ecd5771;p=profile%2Fivi%2Femotion.git emotion: fix some memory leak. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@62128 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/gstreamer/emotion_gstreamer.c b/src/modules/gstreamer/emotion_gstreamer.c index d8c24c7..c39b033 100644 --- a/src/modules/gstreamer/emotion_gstreamer.c +++ b/src/modules/gstreamer/emotion_gstreamer.c @@ -361,6 +361,12 @@ em_shutdown(void *video) ev->thread = NULL; } + if (ev->eos_bus) + { + gst_object_unref(GST_OBJECT(ev->eos_bus)); + ev->eos_bus = NULL; + } + if (ev->pipeline) { gst_element_set_state(ev->pipeline, GST_STATE_NULL);