Fix leak of heap-allocated mutexes

This commit is contained in:
George Hilliard
2018-11-02 01:11:00 -05:00
parent 77eccdf13d
commit 5081c85f26
2 changed files with 11 additions and 13 deletions

View File

@@ -57,7 +57,7 @@ private:
lfModifier *data_;
bool swap_xy_;
int flags_;
MyMutex *lfModifierMutex;
mutable MyMutex lfModifierMutex;
};
class LFCamera final
@@ -122,7 +122,7 @@ private:
LFDatabase();
bool LoadDirectory(const char *dirname);
MyMutex *lfDBMutex;
mutable MyMutex lfDBMutex;
static LFDatabase instance_;
lfDatabase *data_;
};