qtmux: Fix date memory leak

When getting date from taglist, the memory should be freed after
using it.

https://bugzilla.gnome.org/show_bug.cgi?id=756171
This commit is contained in:
Vineeth TM 2015-10-07 17:14:57 +09:00 committed by Sebastian Dröge
parent d7a80be3c7
commit 44008938bb

View file

@ -1004,6 +1004,7 @@ gst_qt_mux_add_3gp_date (GstQTMux * qtmux, const GstTagList * list,
return; return;
year = g_date_get_year (date); year = g_date_get_year (date);
g_date_free (date);
if (year == G_DATE_BAD_YEAR) { if (year == G_DATE_BAD_YEAR) {
GST_WARNING_OBJECT (qtmux, "invalid date in tag"); GST_WARNING_OBJECT (qtmux, "invalid date in tag");