Free memory in the thread

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Free memory in the thread

sielf
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
Reply | Threaded
Open this post in threaded view
|

Re: Free memory in the thread

caoxi
What's the full pipeline? can you provide more details?
Reply | Threaded
Open this post in threaded view
|

Re: Free memory in the thread

sielf
caoxi wrote
What's the full pipeline? can you provide more details?
Sure It is something like this:
https://pastebin.com/SVEZHcWG