projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
216b5ec
)
glcontext: Fix memory leaks in unit test
author
Sebastian Dröge
<sebastian@centricular.com>
Sun, 29 Jun 2014 19:53:21 +0000
(21:53 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:44 +0000
(19:31 +0000)
tests/check/libs/gstglcontext.c
patch
|
blob
|
history
diff --git
a/tests/check/libs/gstglcontext.c
b/tests/check/libs/gstglcontext.c
index
5a094fd
..
bb7e295
100644
(file)
--- 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;