From 8eda6c18fd391e34f180aaece96140a374f274f9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 23 Oct 2007 08:02:22 +0000 Subject: Merged changesets 3653, 3655-3657, 3659-3560, 3671-3672 from trunk to 0.0. Mostly memory leak fixes by Guillaume. --- src/particle.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/particle.cpp') diff --git a/src/particle.cpp b/src/particle.cpp index cdd6af41..0f116b15 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -240,6 +240,7 @@ Particle::addEffect(const std::string &particleEffectFile, { logger->log("Warning: %s is not a valid particle effect definition file!", particleEffectFile.c_str()); + xmlFreeDoc(doc); return NULL; } @@ -299,6 +300,8 @@ Particle::addEffect(const std::string &particleEffectFile, mChildParticles.push_back(newParticle); } + xmlFreeDoc(doc); + return newParticle; } -- cgit v1.2.3-70-g09d2