C_API plugin destructor and Interleave
Asd-g opened this issue · 1 comments
Asd-g commented
source # X.Y resolution
c_plugin # output X1.Y1 resolution
Interleave(source, c_plugin)
In the above case Interleave
gives error that both clips must be of the same size but the c_plugin destructor is never triggered.
For example, if StackHorizontal
is used instead Interleave
for this case, the c_plugin destructor is called.
pinterf commented
Yep, StackHorizontal is using std::vector for storing the clips, which gets freed up properly. Interleave is just putting the clip into a PClip* array, which is left unfreed when and exception occurs. I made it similar to StackHorizontal/Vertical, and going to upload to git after some more tests.