Fix memleak :)
authorXavi Artigas <xartigas@fluendo.com>
Thu, 18 Oct 2012 11:40:42 +0000 (13:40 +0200)
committerXavi Artigas <xartigas@fluendo.com>
Thu, 18 Oct 2012 11:40:42 +0000 (13:40 +0200)
gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c

index 25ce9c1..31e5907 100644 (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;