Mercurial > hg > svcore
changeset 760:b6bb0ecb7958
Avoid crash on CoreAudio reader dtor after failing to open file (fixing #504)
author | Chris Cannam |
---|---|
date | Sat, 09 Mar 2013 11:45:15 +0000 |
parents | a43acbe3988f |
children | dc87569a196e 001d77a720ce |
files | data/fileio/CoreAudioFileReader.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/data/fileio/CoreAudioFileReader.cpp Fri Mar 08 21:35:46 2013 +0000 +++ b/data/fileio/CoreAudioFileReader.cpp Sat Mar 09 11:45:15 2013 +0000 @@ -72,6 +72,8 @@ m_channelCount = 0; m_fileRate = 0; + m_d->buffer.mBuffers[0].mData = 0; + Profiler profiler("CoreAudioFileReader::CoreAudioFileReader", true); SVDEBUG << "CoreAudioFileReader: path is \"" << m_path.toStdString() << "\"" << endl;