Hello.
I've written code in the C to pull gstBuffer in thread and save as png file. I run this code as thread to make screenshot in parallel to each other. But thread doesn't free the image memory in a proper way and memory leaks. I am sure that problem is obvious, but I can't fund out what is wrong. Could your please explain where I am wrong?
https://pastebin.com/tcg7jTSh