diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-07 06:44:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-07 06:44:38 +0300 |
commit | fec0a38e6a12c8674e54a29b0c3ae54fa78e86ff (patch) | |
tree | fa68e8d59ade869c1de33bce9eb60a8cd05fdbc8 /src/utils/sdlhelper.h | |
parent | ba0d8f949647aa4ced776438a1e1e9ebd77c4660 (diff) | |
download | mv-fec0a38e6a12c8674e54a29b0c3ae54fa78e86ff.tar.gz mv-fec0a38e6a12c8674e54a29b0c3ae54fa78e86ff.tar.bz2 mv-fec0a38e6a12c8674e54a29b0c3ae54fa78e86ff.tar.xz mv-fec0a38e6a12c8674e54a29b0c3ae54fa78e86ff.zip |
Fix possible thread structure memory leak on SDL2 if thread terminated before cleanup.
Diffstat (limited to 'src/utils/sdlhelper.h')
-rw-r--r-- | src/utils/sdlhelper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/sdlhelper.h b/src/utils/sdlhelper.h index 5e8c31e15..abb3934cb 100644 --- a/src/utils/sdlhelper.h +++ b/src/utils/sdlhelper.h @@ -69,6 +69,8 @@ namespace SDL void makeCurrentContext(void *const context); void initLogger(); + + void WaitThread(SDL_Thread *const thread); } // namespace SDL #endif // USE_SDL2 |