Fix memleak :)

This commit is contained in:
Xavi Artigas 2012-10-18 13:40:42 +02:00
parent 2f602601f0
commit aeefdd86bc

View file

@ -229,6 +229,7 @@ static void *app_function (void *userdata) {
g_main_context_pop_thread_default(data->context);
g_main_context_unref (data->context);
gst_element_set_state (data->pipeline, GST_STATE_NULL);
gst_object_unref (data->video_sink);
gst_object_unref (data->pipeline);
return NULL;