summaryrefslogtreecommitdiff
path: root/gst/audiovisualizers/gstwavescope.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-17 15:23:17 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-18 16:05:42 -0800
commit86ec81242987d876ef0760b6d9201c79de9d1bf4 (patch)
tree7218eb94926339718084cf101ab76907d8912793 /gst/audiovisualizers/gstwavescope.c
parent87b5ad0dfc2cca4c35337f85bc0f5b89fe462d6a (diff)
downloadgstreamer-plugins-bad-86ec81242987d876ef0760b6d9201c79de9d1bf4.tar.gz
Remove unnecessary NULL checks before g_free()
g_free() is NULL-safe
Diffstat (limited to 'gst/audiovisualizers/gstwavescope.c')
-rw-r--r--gst/audiovisualizers/gstwavescope.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/audiovisualizers/gstwavescope.c b/gst/audiovisualizers/gstwavescope.c
index b87d05cf8..4b7fe3aac 100644
--- a/gst/audiovisualizers/gstwavescope.c
+++ b/gst/audiovisualizers/gstwavescope.c
@@ -176,8 +176,7 @@ gst_wave_scope_setup (GstAudioVisualizer * bscope)
{
GstWaveScope *scope = GST_WAVE_SCOPE (bscope);
- if (scope->flt)
- g_free (scope->flt);
+ g_free (scope->flt);
scope->flt = g_new0 (gdouble, 6 * GST_AUDIO_INFO_CHANNELS (&bscope->ainfo));