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

@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*
* This median implementations from Floessie and Ingo Weyrich are inspired by this work:
* These median implementations from Flössie and Ingo Weyrich are inspired by this work:
*
* http://ndevilla.free.fr/median/median.pdf
* http://pages.ripco.net/~jgamble/nw.html

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);