emotion: fix some memory leak.

SVN revision: 62128
This commit is contained in:
Cedric BAIL 2011-08-05 08:51:10 +00:00
parent aefb755102
commit c81a932b68
1 changed files with 6 additions and 0 deletions

View 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);