From 2b7a1b4bb9bfda2f8ff25f0cf4ec06220e5da67a Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sat, 14 Nov 2015 16:57:13 -0800 Subject: [PATCH] vp9enc: remove unnecessary NULL check before g_free() --- ext/vpx/gstvp9enc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/vpx/gstvp9enc.c b/ext/vpx/gstvp9enc.c index e8e347f..ab1729d 100644 --- a/ext/vpx/gstvp9enc.c +++ b/ext/vpx/gstvp9enc.c @@ -882,8 +882,7 @@ gst_vp9_enc_set_property (GObject * object, guint prop_id, global = TRUE; break; case PROP_MULTIPASS_CACHE_FILE: - if (gst_vp9_enc->multipass_cache_prefix) - g_free (gst_vp9_enc->multipass_cache_prefix); + g_free (gst_vp9_enc->multipass_cache_prefix); gst_vp9_enc->multipass_cache_prefix = g_value_dup_string (value); break; case PROP_TS_NUMBER_LAYERS: -- 2.7.4