From 59ce7917ffb4e6b89593a54fed590d439585ae5f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jun 2011 16:45:02 +0300 Subject: Temporary restore imageset leaks for testing. --- src/particleemitter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/particleemitter.cpp') diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp index ad67d622b..592d9b078 100644 --- a/src/particleemitter.cpp +++ b/src/particleemitter.cpp @@ -210,7 +210,7 @@ ParticleEmitter::ParticleEmitter(xmlNodePtr emitterNode, Particle *target, logger->log1("Error: no valid imageset"); continue; } - mTempSets.push_back(imageset); +// mTempSets.push_back(imageset); // Get animation frames for_each_xml_child_node(frameNode, propertyNode) @@ -294,7 +294,7 @@ ParticleEmitter::ParticleEmitter(xmlNodePtr emitterNode, Particle *target, logger->log1("Error: no valid imageset"); continue; } - mTempSets.push_back(imageset); +// mTempSets.push_back(imageset); // Get animation frames for_each_xml_child_node(frameNode, propertyNode) @@ -439,6 +439,7 @@ ParticleEmitter & ParticleEmitter::operator=(const ParticleEmitter &o) ParticleEmitter::~ParticleEmitter() { +/* for (std::list::iterator i = mTempSets.begin(); i != mTempSets.end(); ++i) @@ -447,6 +448,7 @@ ParticleEmitter::~ParticleEmitter() (*i)->decRef(); } mTempSets.clear(); +*/ if (mParticleImage) { -- cgit v1.2.3-70-g09d2