#include <gtkmm.h>

class MainWin : public Gtk::Window
{
public:
  MainWin()
  {
    Gtk::ToggleButton *pB = manage(new class Gtk::ToggleButton("create and delete combo"));
    add(*pB);
    pB->signal_clicked().connect( SigC::slot(*this, &MainWin::on_button_clicked) );
    show_all_children();
  }

  void on_button_clicked()
  {
    for (int i=0; i<10000; i++) {
      Gtk::Combo cmbo;
      Gtk::Entry *e = cmbo.get_entry();
    }
  }

};

int main(int argc, char**argv)
{
  Gtk::Main app(&argc, &argv);

  MainWin mainwin;

  app.run(mainwin);
}

