diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 21:36:30 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | 678e45a8f714acddef2d6c3186100ac1ee2c9ffd (patch) | |
tree | edbcf1f0c66c232c231e96b0fcd3cd44164552a2 | |
parent | fd4d33b0fa8e1d4beea44a93d3b4d9ac98886c1a (diff) |
wavparse: remove unnecessary NULL checks before g_free()
-rw-r--r-- | gst/wavparse/gstwavparse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index b0e34231a..ab0bedd5c 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -1691,10 +1691,8 @@ gst_wavparse_stream_headers (GstWavParse * wav) /* ERROR */ exit: { - if (codec_name) - g_free (codec_name); - if (header) - g_free (header); + g_free (codec_name); + g_free (header); if (caps) gst_caps_unref (caps); return res; |