DS: Prevent OSystem destructor from deleting _savefileManager
This commit is contained in:
parent
83f8f33c40
commit
9f40bdcd2c
1 changed files with 6 additions and 0 deletions
|
@ -95,6 +95,12 @@ OSystem_DS::OSystem_DS()
|
|||
|
||||
OSystem_DS::~OSystem_DS() {
|
||||
delete _mixer;
|
||||
_mixer = 0;
|
||||
|
||||
// If _savefileManager is not 0, then it points to the OSystem_DS
|
||||
// member variable mpSaveManager. Hence we set _savefileManager to
|
||||
// 0, to prevent the OSystem destructor from trying to delete it.
|
||||
_savefileManager = 0;
|
||||
}
|
||||
|
||||
int OSystem_DS::timerHandler(int t) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue