VAudioplayer::~VAudioplayer()
{
+ // Note from Chris:
+ // As of > 0.2.7 BoxStack has its own locking, this means returning 4 (delete me)
+ // in VAudioPlayer::handleCommand (case BACK) doesn't work as expected any more.
+ // BoxStack calls this destructor but BoxStack is locked at that point, so its not
+ // possible to call boxstack->remove(banner) here anymore. I left the call in,
+ // but inserted a destroyBanner() call in the handleCommand function.
+
if (banner) BoxStack::getInstance()->remove(banner);
if (fullname) delete fullname;
if (filename) delete filename;
break;
case Remote::BACK:
{
+ destroyBanner(); // This line inserted to prevent BoxStack deadlock in this class destructor - Chris
rt= 4;
}
break;