diff --git a/rtgui/filecatalog.cc b/rtgui/filecatalog.cc index 8443dc821..c77395d59 100644 --- a/rtgui/filecatalog.cc +++ b/rtgui/filecatalog.cc @@ -107,8 +107,8 @@ FileCatalog::FileCatalog (CoarsePanel* cp, ToolBar* tb, FilePanel* filepanel) : bUnRanked->signal_button_press_event().connect (sigc::mem_fun(*this, &FileCatalog::capture_event),false); for (int i=0; i<5; i++) { - iranked[i] = Gtk::manage( new Gtk::Image (argv0+"/images/rated.png") ); - igranked[i] = Gtk::manage( new Gtk::Image (argv0+"/images/grayrated.png") ); + iranked[i] = new Gtk::Image (argv0+"/images/rated.png"); + igranked[i] = new Gtk::Image (argv0+"/images/grayrated.png"); iranked[i]->show (); igranked[i]->show (); bRank[i] = Gtk::manage( new Gtk::ToggleButton () ); @@ -227,6 +227,10 @@ FileCatalog::FileCatalog (CoarsePanel* cp, ToolBar* tb, FilePanel* filepanel) : FileCatalog::~FileCatalog() { + for (int i=0; i<5; i++) { + delete iranked[i]; + delete igranked[i]; + } delete iTrashEmpty; delete iTrashFull; }