mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
videotimecode: Unref GDateTime in error cases
This commit is contained in:
parent
903a8863ce
commit
9460d40054
1 changed files with 2 additions and 0 deletions
|
@ -162,6 +162,7 @@ gst_video_time_code_to_date_time (const GstVideoTimeCode * tc)
|
||||||
("Asked to convert time code %s to GDateTime, but its latest daily jam is NULL",
|
("Asked to convert time code %s to GDateTime, but its latest daily jam is NULL",
|
||||||
tc_str);
|
tc_str);
|
||||||
g_free (tc_str);
|
g_free (tc_str);
|
||||||
|
g_date_time_unref (ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,6 +172,7 @@ gst_video_time_code_to_date_time (const GstVideoTimeCode * tc)
|
||||||
("Asked to convert time code %s to GDateTime, but its framerate is unknown",
|
("Asked to convert time code %s to GDateTime, but its framerate is unknown",
|
||||||
tc_str);
|
tc_str);
|
||||||
g_free (tc_str);
|
g_free (tc_str);
|
||||||
|
g_date_time_unref (ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue