Designer::~Designer()
{
+ for(vector<Toolbar *>::iterator i=toolbars.begin(); i!=toolbars.end(); ++i)
+ delete *i;
delete overlay;
delete pipeline;
delete base_object;
#include <msp/gltk/dropdown.h>
#include "toolbar.h"
-class Routebar: public Toolbar
+class Routebar: public Toolbar, public sigc::trackable
{
private:
Designer &designer;
class Designer;
-class Zonebar: public Toolbar
+class Zonebar: public Toolbar, public sigc::trackable
{
private:
Designer &designer;
delete trains.begin()->second;
while(!routes.empty())
delete *routes.begin();
+ while(!zones.empty())
+ delete *zones.begin();
while(!tracks.empty())
delete *tracks.begin();
while(!blocks.empty())