Commit 836cb6ca authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed a memory leak

parent 95fa837c
......@@ -72,7 +72,9 @@ ReferenceFloatStreamImpl::ReferenceFloatStreamImpl(std::string name, int size, S
}
ReferenceFloatStreamImpl::~ReferenceFloatStreamImpl() {
delete [] data;
for (int i = 0; i < getSize(); i++)
delete[] data[i];
delete[] data;
}
void ReferenceFloatStreamImpl::loadFromArray(const void* array) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment