projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3656e02
)
gl: fix memory leak
author
Luis de Bethencourt
<luis.bg@samsung.com>
Wed, 4 Feb 2015 14:10:13 +0000
(14:10 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Wed, 4 Feb 2015 14:10:13 +0000
(14:10 +0000)
In gst_gl_filter_fixate_caps () it can goto done without freeing the memory of
the tmp GstStructure. This makes it go out of scope and leak.
CID #
1265765
gst-libs/gst/gl/gstglfilter.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglfilter.c
b/gst-libs/gst/gl/gstglfilter.c
index 3e6f8a604d6625223835da9eded4eac986e8910a..dfb723cdbc8173d1d6a3ee95f18ed1647e2060f1 100644
(file)
--- a/
gst-libs/gst/gl/gstglfilter.c
+++ b/
gst-libs/gst/gl/gstglfilter.c
@@
-616,6
+616,7
@@
gst_gl_filter_fixate_caps (GstBaseTransform * bt,
&to_par_n, &to_par_d)) {
GST_ELEMENT_ERROR (bt, CORE, NEGOTIATION, (NULL),
("Error calculating the output scaled size - integer overflow"));
+ gst_structure_free (tmp);
goto done;
}