emotion: fix some memory leak.
authorcedric <cedric>
Fri, 5 Aug 2011 08:51:10 +0000 (08:51 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 5 Aug 2011 08:51:10 +0000 (08:51 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@62128 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/gstreamer/emotion_gstreamer.c

index d8c24c7..c39b033 100644 (file)
@@ -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);