- memory leak fixes

This commit is contained in:
Mark Vejvoda
2010-09-07 17:30:13 +00:00
parent bf87b2c167
commit 9817e8a860
11 changed files with 87 additions and 26 deletions

View File

@@ -437,6 +437,7 @@ public:
void cleanupParticleSystems(vector<ParticleSystem *> &particleSystems);
void cleanupUnitParticleSystems(vector<UnitParticleSystem *> &particleSystems);
int findParticleSystems(ParticleSystem *psFind, const vector<ParticleSystem *> &particleSystems) const;
bool validateParticleSystemStillExists(ParticleSystem * particleSystem) const;
};
}}//end namespace

View File

@@ -146,7 +146,7 @@ public:
}
std::string getString() const {
std::ostringstream streamOut;
std::ostringstream streamOut(std::ostringstream::out);
streamOut << "x [" << x << "] y [" << y << "]";
return streamOut.str();
}
@@ -330,7 +330,7 @@ public:
}
std::string getString() const {
std::ostringstream streamOut;
std::ostringstream streamOut(std::ostringstream::out);
streamOut << "x [" << x << "] y [" << y << "] z [" << z << "]";
return streamOut.str();
}
@@ -473,7 +473,7 @@ public:
}
std::string getString() const {
std::ostringstream streamOut;
std::ostringstream streamOut(std::ostringstream::out);
streamOut << "x [" << x << "] y [" << y << "] z [" << z << "] w [" << w << "]";
return streamOut.str();
}