jonathanblacknight
11-03-2011 04:54:38
I'm using OgreAl in my project and I found a little memory leak.
When I use addSoundFinishedHandler the class Sound add a pointer mFinishedCallback and never destroy it, the same thing to addSoundLoopedHandler and mLoopedCallback.
If add in Sound destructor OgreALSound line 259 all will be fine
When I use addSoundFinishedHandler the class Sound add a pointer mFinishedCallback and never destroy it, the same thing to addSoundLoopedHandler and mLoopedCallback.
If add in Sound destructor OgreALSound line 259 all will be fine
if(mFinishedCallback){
delete mFinishedCallback;
}
if(mLoopedCallback){
delete mLoopedCallback;
}