squares openCV addon, but yet with memory consume error


I am Mar, new in posting here in OF forum. I pass to OF addon the example of finding square in an image of OpenCV samples.

But now it needs maybe some help to improve it, because it consume memory. I think need add some release methods for memory in openCV methods that I don’t know yet. It has the release openCV methods used in example “squares.c”.

People can download from:

And many thanks for the help from Charli_e

Also best regards from Linz to all OF people