diff options
author | David Robillard <d@drobilla.net> | 2016-09-18 12:43:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-18 20:33:18 -0400 |
commit | f2a771911c02ab04c344922849295c82c2cb3329 (patch) | |
tree | 340ad260810f86daeb32dad6826bfdec7ff37706 /raul | |
parent | f1248a8dd3a6e67cd0e61e66ea92ad54b4b2b20b (diff) | |
download | raul-f2a771911c02ab04c344922849295c82c2cb3329.tar.gz raul-f2a771911c02ab04c344922849295c82c2cb3329.tar.bz2 raul-f2a771911c02ab04c344922849295c82c2cb3329.zip |
Fix minor memory errors in test suite
Diffstat (limited to 'raul')
-rw-r--r-- | raul/ThreadVar.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/raul/ThreadVar.hpp b/raul/ThreadVar.hpp index 7f5cf92..fa714bd 100644 --- a/raul/ThreadVar.hpp +++ b/raul/ThreadVar.hpp @@ -1,6 +1,6 @@ /* This file is part of Raul. - Copyright 2007-2012 David Robillard <http://drobilla.net> + Copyright 2007-2016 David Robillard <http://drobilla.net> Raul is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -38,6 +38,8 @@ public: } ~ThreadVar() { + T* val = (T*)pthread_getspecific(_key); + delete val; pthread_key_delete(_key); } |