diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 21:31:08 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | fd4d33b0fa8e1d4beea44a93d3b4d9ac98886c1a (patch) | |
tree | 90ddda7017868752ba028639a499b514e39ae01b | |
parent | edec775e268158a86b92566890925d0a0864ef81 (diff) |
matroskamux: remove unnecessary NULL checks before g_free()
-rw-r--r-- | gst/matroska/matroska-mux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index ed8019bcd..d60b86341 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -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); } |