mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
glcontext: Fix memory leaks in unit test
This commit is contained in:
parent
216b5ec9a8
commit
fcb15bd609
1 changed files with 1 additions and 2 deletions
|
@ -238,7 +238,6 @@ GST_START_TEST (test_share)
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
gint i = 0;
|
gint i = 0;
|
||||||
|
|
||||||
display = gst_gl_display_new ();
|
|
||||||
context = gst_gl_context_new (display);
|
context = gst_gl_context_new (display);
|
||||||
|
|
||||||
window = gst_gl_window_new (display);
|
window = gst_gl_window_new (display);
|
||||||
|
@ -292,7 +291,6 @@ GST_START_TEST (test_wrapped_context)
|
||||||
GstGLPlatform platform;
|
GstGLPlatform platform;
|
||||||
GstGLAPI apis;
|
GstGLAPI apis;
|
||||||
|
|
||||||
display = gst_gl_display_new ();
|
|
||||||
context = gst_gl_context_new (display);
|
context = gst_gl_context_new (display);
|
||||||
|
|
||||||
window = gst_gl_window_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_window);
|
||||||
gst_object_unref (other_context);
|
gst_object_unref (other_context);
|
||||||
gst_object_unref (context);
|
gst_object_unref (context);
|
||||||
|
gst_object_unref (wrapped_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
Loading…
Reference in a new issue