clintbellanger/flare — pull request #981 by igorko (2012-09-17 16:12:52+00:00)
Title: Don't use arrays in GameStateConfig

Make adding new options easy. Note destructor is using for loop with iterators to delete widgets(objects). This should make a deal because i get the same memory leftover when apply delete for each object. Even when using:

for (unsigned int i = 0; i < child_widget.size(); i++)
{
delete child_widget[i];
}

memory leak is the same, which looks like the most wrong implementation

But some memory still leaks(and iirc it did before). If anyone could uncover the reason (@stefanbeller ?) I would be happy.