From fcb15bd609c26622aa75111c56c89bcf725c22a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 29 Jun 2014 21:53:21 +0200 Subject: [PATCH] glcontext: Fix memory leaks in unit test --- tests/check/libs/gstglcontext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/check/libs/gstglcontext.c b/tests/check/libs/gstglcontext.c index 5a094fdb7a..bb7e295b08 100644 --- a/tests/check/libs/gstglcontext.c +++ b/tests/check/libs/gstglcontext.c @@ -238,7 +238,6 @@ GST_START_TEST (test_share) GError *error = NULL; gint i = 0; - display = gst_gl_display_new (); context = gst_gl_context_new (display); window = gst_gl_window_new (display); @@ -292,7 +291,6 @@ GST_START_TEST (test_wrapped_context) GstGLPlatform platform; GstGLAPI apis; - display = gst_gl_display_new (); context = gst_gl_context_new (display); window = gst_gl_window_new (display); @@ -338,6 +336,7 @@ GST_START_TEST (test_wrapped_context) gst_object_unref (other_window); gst_object_unref (other_context); gst_object_unref (context); + gst_object_unref (wrapped_context); } GST_END_TEST;