Skip to content
Snippets Groups Projects
Commit 41c1d1a9 authored by Alex Chernyakov's avatar Alex Chernyakov Committed by Jean-Baptiste Kempf
Browse files

dynamicoverlay: Fix memory leak when updating pictures

In exec_DataSharedMem() memory is allocated via the call to picture_New().
This memory is correctly freed via picture_Release() if an error occurs,
but if no error occurs and the function proceeds normally, the memory is
never freed. When the DataSharedMem routine is called repeatedly (e.g.,
to update a picture continuously), this leak accumulates very quickly.
parent 4823a53b
No related branches found
No related tags found
Loading
Pipeline #249811 passed with stages
in 25 minutes and 5 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment