Fixing a crash on sound buffer deallocation