diff options
author | waker <wakeroid@gmail.com> | 2011-04-16 21:09:53 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-16 21:09:53 +0200 |
commit | e7f537fcf1e948a1044fbc9bab72ae4d4f7edcd6 (patch) | |
tree | e64ff19ae6af769925c29c8b74d2ddc408e20255 /plugins | |
parent | 1416dfbf622b443c309e299e0b1efd01646c8b37 (diff) |
fix memleak in cdda
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/cdda/cdda.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/cdda/cdda.c b/plugins/cdda/cdda.c index 4e5a6791..b8b0f84e 100644 --- a/plugins/cdda/cdda.c +++ b/plugins/cdda/cdda.c @@ -128,9 +128,11 @@ cda_init (DB_fileinfo_t *_info, DB_playItem_t *it) { int trk_discid = deadbeef->pl_find_meta_int (it, ":CDIO_DISCID", 0); if (trk_discid != discid) { + cddb_disc_destroy (disc); trace ("cdda: the track belongs to another disc, skipped\n"); return -1; } + cddb_disc_destroy (disc); if (TRACK_FORMAT_AUDIO != cdio_get_track_format (info->cdio, track_nr)) |