Solving issue 2619: "RawTherapee crashes with SIGSEGV, Segmentation fault when closed"

This commit is contained in:
Hombre
2014-12-31 15:25:28 +01:00
parent 750cd87047
commit 143230108b
2 changed files with 3 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ FilePanel::FilePanel () : parent(NULL) {
rightBox = Gtk::manage ( new Gtk::HBox () );
rightBox->set_size_request(50,100);
rightNotebook = Gtk::manage ( new Gtk::Notebook () );
rightNotebook->signal_switch_page().connect_notify( sigc::mem_fun(*this, &FilePanel::on_NB_switch_page) );
rightNotebookSwitchConn = rightNotebook->signal_switch_page().connect_notify( sigc::mem_fun(*this, &FilePanel::on_NB_switch_page) );
//Gtk::VBox* taggingBox = Gtk::manage ( new Gtk::VBox () );
history = Gtk::manage ( new History (false) );
@@ -134,6 +134,7 @@ FilePanel::FilePanel () : parent(NULL) {
}
FilePanel::~FilePanel () {
rightNotebookSwitchConn.disconnect();
if (inspectorPanel)
delete inspectorPanel;
}

View File

@@ -51,6 +51,7 @@ class FilePanel : public Gtk::HPaned,
//FilterPanel* filterPanel;
RTWindow* parent;
Gtk::Notebook* rightNotebook;
sigc::connection rightNotebookSwitchConn;
struct pendingLoad {
bool complete;