delete video readers
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Sun, 11 Oct 2015 21:37:46 +0000 (00:37 +0300)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Mon, 26 Oct 2015 07:53:23 +0000 (10:53 +0300)
(cherry picked from commit 0d5b739d35e7a0c2d2b88db58994397ae969f468)

modules/highgui/test/test_ffmpeg.cpp

index 09de119..31108f8 100644 (file)
@@ -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<VideoCapture *>::iterator i = readers.begin(), end = readers.end(); i != end; ++i)
+        delete *i;
 }
 
 #endif