From 0d5b739d35e7a0c2d2b88db58994397ae969f468 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 12 Oct 2015 00:37:46 +0300 Subject: [PATCH] delete video readers --- modules/highgui/test/test_ffmpeg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/highgui/test/test_ffmpeg.cpp b/modules/highgui/test/test_ffmpeg.cpp index 09de119ac..31108f857 100644 --- a/modules/highgui/test/test_ffmpeg.cpp +++ b/modules/highgui/test/test_ffmpeg.cpp @@ -396,6 +396,10 @@ TEST(Highgui_Video_parallel_writers_and_readers, accuracy) if (code == 1) std::cerr << "Couldn't delete " << *i << std::endl; } + + // delete the readers + for (std::vector::iterator i = readers.begin(), end = readers.end(); i != end; ++i) + delete *i; } #endif