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

@@ -21,6 +21,15 @@
using namespace rtengine::procparams;
class Frame2: public Gtk::Frame
{
Gtk::Container *pC;
public:
Frame2( Gtk::Container *p):pC(p){}
~Frame2( ){ delete pC;}
};
FoldableToolPanel::FoldableToolPanel(Gtk::Box* content) : ToolPanel(), parentContainer(NULL), exp(NULL) {
exp = Gtk::manage (new Gtk::Expander ());
@@ -28,7 +37,7 @@ FoldableToolPanel::FoldableToolPanel(Gtk::Box* content) : ToolPanel(), parentCon
exp->set_use_markup (true);
exp->signal_button_release_event().connect_notify( sigc::mem_fun(this, &FoldableToolPanel::foldThemAll) );
Gtk::Frame* pframe = Gtk::manage (new Gtk::Frame ());
Frame2* pframe = Gtk::manage (new Frame2 (content));
pframe->set_name ("ToolPanel");