diff options
author | Max Kellermann <max@duempel.org> | 2009-11-10 21:42:15 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-10 21:42:15 +0100 |
commit | b6a2ffd3d761c05fd7cd7fecfe470307b6a5ed15 (patch) | |
tree | adad8c48fe7476b3cb9a47eb5888225830b302c6 /src/decoder/flac_plugin.c | |
parent | 6a5f4651a12cfb624e723835b0c37f38ffb4ec64 (diff) | |
download | mpd-b6a2ffd3d761c05fd7cd7fecfe470307b6a5ed15.tar.gz mpd-b6a2ffd3d761c05fd7cd7fecfe470307b6a5ed15.tar.xz mpd-b6a2ffd3d761c05fd7cd7fecfe470307b6a5ed15.zip |
decoder/flac: added function flac_data_deinit()
Clean up tag and replay_gain_info there.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/flac_plugin.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c index 9692ba49f..73d82a65c 100644 --- a/src/decoder/flac_plugin.c +++ b/src/decoder/flac_plugin.c @@ -485,10 +485,7 @@ flac_decode_internal(struct decoder * decoder, } fail: - if (data.replay_gain_info) - replay_gain_info_free(data.replay_gain_info); - - tag_free(data.tag); + flac_data_deinit(&data); if (flac_dec) flac_delete(flac_dec); @@ -670,8 +667,7 @@ fail: if (pathname) g_free(pathname); - if (data.replay_gain_info) - replay_gain_info_free(data.replay_gain_info); + flac_data_deinit(&data); if (flac_dec) flac_delete(flac_dec); @@ -793,8 +789,7 @@ flac_filedecode_internal(struct decoder* decoder, } fail: - if (data.replay_gain_info) - replay_gain_info_free(data.replay_gain_info); + flac_data_deinit(&data); if (flac_dec) flac_delete(flac_dec); |