mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
matroskamux: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
edec775e26
commit
fd4d33b0fa
1 changed files with 2 additions and 4 deletions
|
@ -490,8 +490,7 @@ gst_matroska_mux_finalize (GObject * object)
|
|||
|
||||
gst_object_unref (mux->collect);
|
||||
gst_object_unref (mux->ebml_write);
|
||||
if (mux->writing_app)
|
||||
g_free (mux->writing_app);
|
||||
g_free (mux->writing_app);
|
||||
|
||||
g_array_free (mux->used_uids, TRUE);
|
||||
|
||||
|
@ -908,8 +907,7 @@ gst_matroska_mux_set_codec_id (GstMatroskaTrackContext * context,
|
|||
const char *id)
|
||||
{
|
||||
g_assert (context && id);
|
||||
if (context->codec_id)
|
||||
g_free (context->codec_id);
|
||||
g_free (context->codec_id);
|
||||
context->codec_id = g_strdup (id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue