decoder/flac: removed redundant NULL checks

After the decoder loop, "flac_dec" is always set.
This commit is contained in:
Max Kellermann 2009-11-11 08:37:21 +01:00
parent d605329f83
commit 707b9fea17

View File

@ -483,9 +483,7 @@ flac_decode_internal(struct decoder * decoder,
fail:
flac_data_deinit(&data);
if (flac_dec)
flac_delete(flac_dec);
flac_delete(flac_dec);
if (err)
g_warning("%s\n", err);
@ -665,9 +663,7 @@ fail:
g_free(pathname);
flac_data_deinit(&data);
if (flac_dec)
flac_delete(flac_dec);
flac_delete(flac_dec);
if (err)
g_warning("%s\n", err);
@ -787,9 +783,7 @@ flac_filedecode_internal(struct decoder* decoder,
fail:
flac_data_deinit(&data);
if (flac_dec)
flac_delete(flac_dec);
flac_delete(flac_dec);
if (err)
g_warning("%s\n", err);