Fix use-after-free of ImageArea::mainCropWindow (#3048)

This commit is contained in:
Flössie
2016-09-29 18:21:37 +02:00
parent 87eea2f078
commit 8e6cfcb766
2 changed files with 2 additions and 1 deletions

View File

@@ -781,6 +781,7 @@ void EditorPanel::close ()
if(iareapanel) {
iareapanel->imageArea->setPreviewHandler (NULL);
iareapanel->imageArea->setImProcCoordinator (NULL);
iareapanel->imageArea->unsubscribe();
}
rtengine::StagedImageProcessor::destroy (ipc);