oops. fixed a huge memory leak, but probably didn't change visual behavior.

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/dev-1.0@331 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-08-14 22:40:19 +00:00
parent 0b725cc4d2
commit f1653eb9d2

View File

@ -54,9 +54,7 @@ Preset::Preset(const std::string & filename, const PresetInputs & presetInputs,
Preset::~Preset()
{
/// testing
customWaves->clear();
customShapes->clear();
Algorithms::traverse<Algorithms::TraverseFunctors::DeleteFunctor<InitCond> >(init_cond_tree);
Algorithms::traverse<Algorithms::TraverseFunctors::DeleteFunctor<InitCond> >(per_frame_init_eqn_tree);
@ -80,6 +78,10 @@ Preset::~Preset()
delete(pos->second);
}
/// testing
customWaves->clear();
customShapes->clear();
}
/* Adds a per pixel equation according to its string name. This