Before/After fix by Fabio; see issue #497

This commit is contained in:
Oliver Duis
2011-04-16 23:18:30 +02:00
parent 1b1f1cef98
commit 38318b6688

View File

@@ -286,13 +286,25 @@ EditorPanel::~EditorPanel () {
history->setHistoryBeforeLineListener (NULL);
// the order is important!
iarea->setBeforeAfterViews (NULL, iarea);
delete iarea;
iarea = NULL;
if (beforeIpc)
beforeIpc->stopProcessing ();
delete beforeIarea;
beforeIarea = NULL;
if (beforeIpc)
beforeIpc->setPreviewImageListener (NULL);
delete beforePreviewHandler;
beforePreviewHandler = NULL;
if (beforeIpc)
rtengine::StagedImageProcessor::destroy (beforeIpc);
beforeIpc = NULL;
close ();
if (epih->pending)