v4l2transform: fix memory leak

tmp needs to be freed before going out of scope in 'done'.

CID #1308954
This commit is contained in:
Luis de Bethencourt 2015-07-02 14:34:57 +01:00
parent 6a59cc4b76
commit 911f7b38b9

View file

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