mpegtssection: Free data in error cases

Data is marked as "transfer full", if we have an error we need to
free it.
This commit is contained in:
Edward Hervey 2014-06-25 14:13:55 +02:00
parent 720405b561
commit cddabd751c

View file

@ -1223,6 +1223,7 @@ short_packet:
GST_WARNING GST_WARNING
("PID 0x%04x section extends past provided data (got:%" G_GSIZE_FORMAT ("PID 0x%04x section extends past provided data (got:%" G_GSIZE_FORMAT
", need:%d)", pid, data_size, section_length + 3); ", need:%d)", pid, data_size, section_length + 3);
g_free (data);
return NULL; return NULL;
} }
} }