Commit 984b9c4a authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

delete animation data directly rather than using deleteLater, which results in...

delete animation data directly rather than using deleteLater, which results in all objects being deleted at exit, thus effectively appearing as a memory leak
CCBUG: 309464
parent 2740ba37
......@@ -100,7 +100,7 @@ namespace Oxygen
if( iter == QMap<Key, Value>::end() ) return false;
// delete value from map if found
if( iter.value() ) iter.value().data()->deleteLater();
if( iter.value() ) delete iter.value().data();
QMap<Key, Value>::erase( iter );
return true;
......
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