Commit 61118fb4 authored by Oliver Bock's avatar Oliver Bock
Browse files

Improved memory management (erase/remove takes way too long for large vectors)

git-svn-id: 53d1999f-d1a8-4366-aa61-588fded17473
parent 4d8da253
......@@ -31,10 +31,10 @@ VOTableData::VOTableData()
// iterate over vector and delete all referenced entries
while (!m_TRList->isEmpty()) {
QPointer<VOTR>* entry = m_TRList->begin();
if(*entry) {delete *entry;}
unsigned long size = m_TRList->size();
for (unsigned long i = 0; i < size; ++i) {
if(m_TRList->at(i)) {delete m_TRList->at(i);}
delete m_TRList;
Supports Markdown
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