diff options
author | David Robillard <d@drobilla.net> | 2013-12-25 21:15:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-25 21:15:27 +0000 |
commit | 1a697089a1d14195179383322cdd91f4c726b4f3 (patch) | |
tree | 77b8d2648fb63de7360894c80ea4462e2142467b /raul | |
parent | 202b760c1da2d43a10de7038ee7c30e36fcdad75 (diff) | |
download | raul-1a697089a1d14195179383322cdd91f4c726b4f3.tar.gz raul-1a697089a1d14195179383322cdd91f4c726b4f3.tar.bz2 raul-1a697089a1d14195179383322cdd91f4c726b4f3.zip |
Fix minor memory errors.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@5205 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r-- | raul/SRMWQueue.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/raul/SRMWQueue.hpp b/raul/SRMWQueue.hpp index e122e57..9562a87 100644 --- a/raul/SRMWQueue.hpp +++ b/raul/SRMWQueue.hpp @@ -95,14 +95,14 @@ SRMWQueue<T>::SRMWQueue(size_t size) assert(_size-1 == (unsigned)_write_space.load()); for (unsigned i = 0; i < _size; ++i) { - assert(!_valid[i]); + _valid[i] = false; } } template <typename T> SRMWQueue<T>::~SRMWQueue() { - delete _valid; + delete[] _valid; free(_objects); } |