diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-10-26 18:45:08 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-10-26 18:45:08 +0000 |
| commit | 3c37f74539cf870d563c44b92fc82852b5c46012 (patch) | |
| tree | eb25ed884c7861eb232c05c637db9fa07f0aa5b4 /src/plugins/Input/cdaudio/decoder_cdaudio.cpp | |
| parent | b3d32cd1275310aa7c536c2703abdd3b2f237b9d (diff) | |
| download | qmmp-3c37f74539cf870d563c44b92fc82852b5c46012.tar.gz qmmp-3c37f74539cf870d563c44b92fc82852b5c46012.tar.bz2 qmmp-3c37f74539cf870d563c44b92fc82852b5c46012.zip | |
fixed memory leaks and other errors
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7649 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cdaudio/decoder_cdaudio.cpp')
| -rw-r--r-- | src/plugins/Input/cdaudio/decoder_cdaudio.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/Input/cdaudio/decoder_cdaudio.cpp b/src/plugins/Input/cdaudio/decoder_cdaudio.cpp index 866d517e1..f1e3d543a 100644 --- a/src/plugins/Input/cdaudio/decoder_cdaudio.cpp +++ b/src/plugins/Input/cdaudio/decoder_cdaudio.cpp @@ -427,14 +427,13 @@ bool DecoderCDAudio::initialize() return false; } qDebug("DecoderCDAudio: found cd audio capable drive \"%s\"", *cd_drives); + cdio_free_device_list(cd_drives); //free device list } else { qWarning("DecoderCDAudio: unable to find cd audio drive."); return false; } - if (cd_drives && *cd_drives) //free device list - cdio_free_device_list(cd_drives); } else { |
