Opening a locked raw file in RawTherapee causes crash, fixes #5111
This commit is contained in:
parent
0918d29578
commit
3461328a8c
@ -473,7 +473,7 @@ RawImageSource::~RawImageSource ()
|
||||
delete riFrames[i];
|
||||
}
|
||||
|
||||
for(size_t i = 0; i < numFrames - 1; ++i) {
|
||||
for(size_t i = 0; i + 1 < numFrames; ++i) {
|
||||
delete rawDataBuffer[i];
|
||||
}
|
||||
|
||||
|
@ -301,7 +301,7 @@ bool FilePanel::imageLoaded( Thumbnail* thm, ProgressConnector<rtengine::Initial
|
||||
#ifdef WIN32
|
||||
else {
|
||||
Glib::ustring msg_ = Glib::ustring("<b>") + M("MAIN_MSG_CANNOTLOAD") + " \"" + thm->getFileName() + "\" .\n" + M("MAIN_MSG_TOOMANYOPENEDITORS") + "</b>";
|
||||
Gtk::MessageDialog msgd (msg_, true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||
Gtk::MessageDialog msgd (*parent, msg_, true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||
msgd.run ();
|
||||
goto MAXGDIHANDLESREACHED;
|
||||
}
|
||||
@ -322,7 +322,7 @@ bool FilePanel::imageLoaded( Thumbnail* thm, ProgressConnector<rtengine::Initial
|
||||
}
|
||||
} else {
|
||||
Glib::ustring msg_ = Glib::ustring("<b>") + M("MAIN_MSG_CANNOTLOAD") + " \"" + thm->getFileName() + "\" .\n</b>";
|
||||
Gtk::MessageDialog msgd (msg_, true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||
Gtk::MessageDialog msgd (*parent, msg_, true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||
msgd.run ();
|
||||
}
|
||||
#ifdef WIN32
|
||||
|
Loading…
x
Reference in New Issue
Block a user