crashy bug in December Dev Tools AUEffectBase.cpp
crashy bug in December Dev Tools AUEffectBase.cpp
- Subject: crashy bug in December Dev Tools AUEffectBase.cpp
- From: Marc Poirier <email@hidden>
- Date: Sat, 21 Dec 2002 00:29:50 +0100 (CET)
In AUEffectBase.cpp, at the end of MaintainKernels(), this:
for(unsigned int i = 0; i < nChannels; i++ )
{
mKernelList[i]->SetLastKernel(i == nChannels-1 );
}
will cause an AU that does not override NewKernel (or returns NULL from
NewKernel for any reason) to crash boom crash. :( The following little
change fixes the problem:
for(unsigned int i = 0; i < nChannels; i++ )
{
if (mKernelList[i] != NULL)
mKernelList[i]->SetLastKernel(i == nChannels-1 );
}
I'm about to report this to RADAR, but figured that I'd post it to the
list, too, so that others can apply the fix.
Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.