Commit e76e1d4b authored by Ilya Prokhorov's avatar Ilya Prokhorov

FSCObjects memory leaks fix

parent c5be9b15
......@@ -112,13 +112,11 @@ void FSCObjects::removeObjectAtIndex(unsigned int index) {
void FSCObjects::removeAllObjects() {
for (unsigned int i = 0; i < objects.size(); i++) {
i--;
objects.pop_back();
}
objects.clear();
uuidToObject.clear();
classIdentifierToComponentMap.clear();
instanceIdentifierToObjectMap.clear();
}
void FSCObjects::removeObjectWithClassIdentifier(shared_ptr<string> classIdentifier) {
......
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