Fix some memory leaks, kudos to Alberto
This commit is contained in:
@@ -157,6 +157,8 @@ FilePanel::~FilePanel ()
|
|||||||
if (inspectorPanel) {
|
if (inspectorPanel) {
|
||||||
delete inspectorPanel;
|
delete inspectorPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete tpc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilePanel::on_realize ()
|
void FilePanel::on_realize ()
|
||||||
|
@@ -199,7 +199,7 @@ ICMPanel::ICMPanel () : FoldableToolPanel(this, "icm", M("TP_ICM_LABEL")), iunch
|
|||||||
Gtk::HBox *riHBox = Gtk::manage ( new Gtk::HBox());
|
Gtk::HBox *riHBox = Gtk::manage ( new Gtk::HBox());
|
||||||
Gtk::Label* outputIntentLbl = Gtk::manage (new Gtk::Label(M("TP_ICM_PROFILEINTENT")+":"));
|
Gtk::Label* outputIntentLbl = Gtk::manage (new Gtk::Label(M("TP_ICM_PROFILEINTENT")+":"));
|
||||||
riHBox->pack_start (*outputIntentLbl, Gtk::PACK_SHRINK);
|
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-perceptual.png", M("PREFERENCES_INTENT_PERCEPTUAL"));
|
||||||
ointent->addEntry("intent-relative.png", M("PREFERENCES_INTENT_RELATIVE"));
|
ointent->addEntry("intent-relative.png", M("PREFERENCES_INTENT_RELATIVE"));
|
||||||
ointent->addEntry("intent-saturation.png", M("PREFERENCES_INTENT_SATURATION"));
|
ointent->addEntry("intent-saturation.png", M("PREFERENCES_INTENT_SATURATION"));
|
||||||
|
@@ -83,7 +83,7 @@ private:
|
|||||||
|
|
||||||
MyComboBoxText* onames;
|
MyComboBoxText* onames;
|
||||||
sigc::connection onamesconn;
|
sigc::connection onamesconn;
|
||||||
PopUpButton* ointent;
|
std::unique_ptr<PopUpButton> ointent;
|
||||||
sigc::connection ointentconn;
|
sigc::connection ointentconn;
|
||||||
Gtk::RadioButton* iunchanged;
|
Gtk::RadioButton* iunchanged;
|
||||||
MyFileChooserButton* ipDialog;
|
MyFileChooserButton* ipDialog;
|
||||||
|
Reference in New Issue
Block a user