wavparse: remove unnecessary NULL checks before g_free()

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-11-14 21:36:30 -08:00
parent fd4d33b0fa
commit 678e45a8f7

View file

@ -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;