Some fixes for memory leaks, issue #657

Added Gtk:manage() on widgets and some destructors.
This commit is contained in:
ffsup2
2011-05-09 23:37:25 +02:00
parent 47ba6a6dd5
commit dacf453c54
25 changed files with 319 additions and 299 deletions

View File

@@ -25,9 +25,9 @@ ThumbBrowserBase::ThumbBrowserBase ()
inTabMode=false; // corresponding to take thumbSize
inW = -1; inH = -1;
Gtk::HBox* hb1 = new Gtk::HBox ();
Gtk::HBox* hb2 = new Gtk::HBox ();
Gtk::Frame* frame = new Gtk::Frame ();
Gtk::HBox* hb1 = Gtk::manage( new Gtk::HBox () );
Gtk::HBox* hb2 = Gtk::manage( new Gtk::HBox () );
Gtk::Frame* frame = Gtk::manage( new Gtk::Frame () );
frame->add (internal);
frame->set_shadow_type (Gtk::SHADOW_IN );
hb1->pack_start (*frame);