mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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:
parent
d7a80be3c7
commit
44008938bb
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue