aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/flac_plugin.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index 9c5382e0e..cdb74e72d 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -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);