Fix some memory leaks, kudos to Alberto

This commit is contained in:
heckflosse
2017-07-01 11:47:43 +02:00
parent 3281332b8e
commit 3459676326
3 changed files with 4 additions and 2 deletions

View File

@@ -157,6 +157,8 @@ FilePanel::~FilePanel ()
if (inspectorPanel) {
delete inspectorPanel;
}
delete tpc;
}
void FilePanel::on_realize ()

View File

@@ -199,7 +199,7 @@ ICMPanel::ICMPanel () : FoldableToolPanel(this, "icm", M("TP_ICM_LABEL")), iunch
Gtk::HBox *riHBox = Gtk::manage ( new Gtk::HBox());
Gtk::Label* outputIntentLbl = Gtk::manage (new Gtk::Label(M("TP_ICM_PROFILEINTENT")+":"));
riHBox->pack_start (*outputIntentLbl, Gtk::PACK_SHRINK);
ointent = Gtk::manage (new PopUpButton ());
ointent.reset (new PopUpButton ());
ointent->addEntry("intent-perceptual.png", M("PREFERENCES_INTENT_PERCEPTUAL"));
ointent->addEntry("intent-relative.png", M("PREFERENCES_INTENT_RELATIVE"));
ointent->addEntry("intent-saturation.png", M("PREFERENCES_INTENT_SATURATION"));

View File

@@ -83,7 +83,7 @@ private:
MyComboBoxText* onames;
sigc::connection onamesconn;
PopUpButton* ointent;
std::unique_ptr<PopUpButton> ointent;
sigc::connection ointentconn;
Gtk::RadioButton* iunchanged;
MyFileChooserButton* ipDialog;