ANDROID: Delete _timerManager in OSystem_Android's destructor.

If we leave it for OSystem, the DefaultTimerManager destructor tries
constructing a StackLock which, predictably, calls a pure virtual
function, because OSystem_Android's destructor is finished.
(cherry picked from commit c382c0c195)
This commit is contained in:
Alyssa Milburn 2011-10-21 14:25:53 +02:00
parent 90e2116571
commit c765bcf72d

View file

@ -174,6 +174,8 @@ OSystem_Android::~OSystem_Android() {
_mixer = 0;
delete _fsFactory;
_fsFactory = 0;
delete _timerManager;
_timerManager = 0;
deleteMutex(_event_queue_lock);
}