From 9749afb116e84aa868f305269b5cdb25de6b1ab1 Mon Sep 17 00:00:00 2001 From: "Ilya A. Volynets-Evenbakh" Date: Wed, 14 Mar 2018 09:40:45 -0700 Subject: [PATCH] Fix crash on exit in opencv_annotation destroyWindow was called twice during completion of the annotation procedure, resulting in a crash, and failure to write an output file --- apps/annotation/opencv_annotation.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/annotation/opencv_annotation.cpp b/apps/annotation/opencv_annotation.cpp index 38d5a69058..13149b6990 100644 --- a/apps/annotation/opencv_annotation.cpp +++ b/apps/annotation/opencv_annotation.cpp @@ -140,7 +140,6 @@ vector get_annotations(Mat input_image) switch( key_pressed ) { case 27: - destroyWindow(window_name); stop = true; break; case 99: