Some fixes for memory leaks, issue #657
Added Gtk:manage() on widgets and some destructors.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user