From: Reynaldo H. Verdejo Pinochet Date: Sun, 15 Nov 2015 05:31:08 +0000 (-0800) Subject: matroskamux: remove unnecessary NULL checks before g_free() X-Git-Tag: 1.10.4~756 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd4d33b0fa8e1d4beea44a93d3b4d9ac98886c1a;p=platform%2Fupstream%2Fgst-plugins-good.git matroskamux: remove unnecessary NULL checks before g_free() --- 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); }