summaryrefslogtreecommitdiffstats
path: root/raul/SRMWQueue.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/SRMWQueue.hpp')
-rw-r--r--raul/SRMWQueue.hpp4
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);
}