delete video readers

(cherry picked from commit 0d5b739d35)
This commit is contained in:
Ilya Lavrenov 2015-10-12 00:37:46 +03:00 committed by Alexander Smorkalov
parent 15b313ce4b
commit 96a2edb375

View 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