gl: fix memory leak

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
This commit is contained in:
Luis de Bethencourt 2015-02-04 14:10:13 +00:00
parent 3656e0248a
commit 2cd9d30340

View file

@ -616,6 +616,7 @@ gst_gl_filter_fixate_caps (GstBaseTransform * bt,
&to_par_n, &to_par_d)) { &to_par_n, &to_par_d)) {
GST_ELEMENT_ERROR (bt, CORE, NEGOTIATION, (NULL), GST_ELEMENT_ERROR (bt, CORE, NEGOTIATION, (NULL),
("Error calculating the output scaled size - integer overflow")); ("Error calculating the output scaled size - integer overflow"));
gst_structure_free (tmp);
goto done; goto done;
} }