From aeefdd86bc681c14f93dfc08074edab4555982a3 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Thu, 18 Oct 2012 13:40:42 +0200 Subject: [PATCH] Fix memleak :) --- gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c b/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c index 25ce9c1..31e5907 100644 --- a/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c +++ b/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c @@ -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; -- 2.7.4