projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
545a993
)
libs: gl: Fix a context leak when display_create_context failed
author
He Junyan
<junyan.he@hotmail.com>
Wed, 8 Apr 2020 07:26:23 +0000
(15:26 +0800)
committer
He Junyan
<junyan.he@hotmail.com>
Wed, 8 Apr 2020 07:26:23 +0000
(15:26 +0800)
gst-libs/gst/gl/gstgldisplay.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstgldisplay.c
b/gst-libs/gst/gl/gstgldisplay.c
index f121330738c17e38116d5c99b6e973f1b27e26c3..a5210a4ab8937acac6c0563b27a379addfb674f2 100644
(file)
--- a/
gst-libs/gst/gl/gstgldisplay.c
+++ b/
gst-libs/gst/gl/gstgldisplay.c
@@
-573,6
+573,8
@@
gst_gl_display_create_context (GstGLDisplay * display,
if (ret)
*p_context = context;
+ else
+ gst_object_unref (context);
return ret;
}