RECORDER: Defer mutex deletion to destructor.
Since we now call deinit after a game has been run, otherwise RTL would be broken. See bug report #3388982 "valgrind errors when doing multiple RTL".
This commit is contained in:
parent
a72ab2f448
commit
00d25a77a9
1 changed files with 3 additions and 3 deletions
|
@ -133,6 +133,9 @@ EventRecorder::EventRecorder() {
|
||||||
|
|
||||||
EventRecorder::~EventRecorder() {
|
EventRecorder::~EventRecorder() {
|
||||||
deinit();
|
deinit();
|
||||||
|
|
||||||
|
g_system->deleteMutex(_timeMutex);
|
||||||
|
g_system->deleteMutex(_recorderMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventRecorder::init() {
|
void EventRecorder::init() {
|
||||||
|
@ -282,9 +285,6 @@ void EventRecorder::deinit() {
|
||||||
|
|
||||||
//TODO: remove recordTempFileName'ed file
|
//TODO: remove recordTempFileName'ed file
|
||||||
}
|
}
|
||||||
|
|
||||||
g_system->deleteMutex(_timeMutex);
|
|
||||||
g_system->deleteMutex(_recorderMutex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventRecorder::registerRandomSource(RandomSource &rnd, const String &name) {
|
void EventRecorder::registerRandomSource(RandomSource &rnd, const String &name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue