mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-05 16:25:46 +00:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user