On line 41: (in the constructor)
Code: Select all
setRandomizer(createDefaultRandomizer());
setRandomizer() checks if the given randomizer is the same as the current one, and if not, drops the old one, and grabs the given one, making another copy. So you're making 2, and later (in the destructor) only deleting 1.
Instead of using the line above, it should be this.
Code: Select all
Randomizer = createDefaultRandomizer();