timecodestamper: Plug a leak

This commit is contained in:
Thibault Saunier 2020-03-11 21:37:27 -03:00
parent fa2916a159
commit fb888dada1

View file

@ -1147,6 +1147,9 @@ gst_timecodestamper_transform_ip (GstBaseTransform * vfilter,
|| timecodestamper->reset_internal_tc_from_seek) { || timecodestamper->reset_internal_tc_from_seek) {
gchar *tc_str; gchar *tc_str;
if (timecodestamper->internal_tc)
gst_video_time_code_free (timecodestamper->internal_tc);
timecodestamper->reset_internal_tc_from_seek = FALSE; timecodestamper->reset_internal_tc_from_seek = FALSE;
if (timecodestamper->set_internal_tc) { if (timecodestamper->set_internal_tc) {
timecodestamper->internal_tc = timecodestamper->internal_tc =