Destruct all systems properly in the pipeline.

This commit is contained in:
William Moberg
2016-01-07 16:13:52 +01:00
parent 4048ce6bd4
commit 7fb71f17b2
+2 -4
View File
@@ -15,10 +15,8 @@ public:
~SystemPipeline()
{
for (UnorderedSystems& group : m_OrderedSystemGroups) {
for (auto& pair : group.PureSystems) {
for (auto& system : pair.second) {
delete system;
}
for (auto& pair : group.Systems) {
delete pair.second;
}
}
}