Ask Your Question

Revision history [back]

Actually combining C - style code with C++ style code is completely wrong. So pick one and stick to it.

The code :

_VideoWriter->open

is C - style and requires you to release all pointers manually.

Change to the C++ interface and all pointers will be released after use for you.