Skip to content

Commit

Permalink
delete video readers
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Oct 11, 2015
1 parent 454e5e5 commit 0d5b739
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/highgui/test/test_ffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0d5b739

Please sign in to comment.