From fd4d33b0fa8e1d4beea44a93d3b4d9ac98886c1a Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sat, 14 Nov 2015 21:31:08 -0800 Subject: [PATCH] matroskamux: remove unnecessary NULL checks before g_free() --- gst/matroska/matroska-mux.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index ed8019b..d60b863 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); } -- 2.7.4