diff options
author | 2010-05-19 20:24:38 +0200 | |
---|---|---|
committer | 2010-05-19 20:24:38 +0200 | |
commit | 2bc9b07371f4f1c388cc9fea5ca59ea0aa33f4ee (patch) | |
tree | 814d7c489804ac452d212da194aa254320393e24 /plugins/mpgmad | |
parent | 894a4eb9aac531199ecd89f20437468d7f5c8113 (diff) |
ensure playitem is properly unreferenced in mpeg plugin
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r-- | plugins/mpgmad/mpgmad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c index 982daf7c..43cf4aff 100644 --- a/plugins/mpgmad/mpgmad.c +++ b/plugins/mpgmad/mpgmad.c @@ -913,10 +913,10 @@ cmp3_decode_float32 (mpgmad_info_t *info) { static void cmp3_free (DB_fileinfo_t *_info) { mpgmad_info_t *info = (mpgmad_info_t *)_info; + if (info->buffer.it) { + deadbeef->pl_item_unref (info->buffer.it); + } if (info->buffer.file) { - if (info->buffer.it) { - deadbeef->pl_item_unref (info->buffer.it); - } deadbeef->fclose (info->buffer.file); info->buffer.file = NULL; info->info.file = NULL; |