summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-08 16:45:02 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-08 16:45:02 +0300
commit59ce7917ffb4e6b89593a54fed590d439585ae5f (patch)
tree11d90e2d3a39141736967bae18d685ce075557e3
parent3c7ec0569a4fce157e608021133bdc6cac679c10 (diff)
downloadManaVerse-59ce7917ffb4e6b89593a54fed590d439585ae5f.tar.gz
ManaVerse-59ce7917ffb4e6b89593a54fed590d439585ae5f.tar.bz2
ManaVerse-59ce7917ffb4e6b89593a54fed590d439585ae5f.tar.xz
ManaVerse-59ce7917ffb4e6b89593a54fed590d439585ae5f.zip
Temporary restore imageset leaks for testing.
-rw-r--r--src/particleemitter.cpp6
1 files changed, 4 insertions, 2 deletions
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<ImageSet*>::iterator
i = mTempSets.begin();
i != mTempSets.end(); ++i)
@@ -447,6 +448,7 @@ ParticleEmitter::~ParticleEmitter()
(*i)->decRef();
}
mTempSets.clear();
+*/
if (mParticleImage)
{