mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
examples: fix some leaks
This commit is contained in:
parent
27f811d726
commit
8f7a19f2e3
3 changed files with 3 additions and 3 deletions
|
|
@ -142,7 +142,7 @@ on_stream_new_buffer(void *_data, uint32_t id)
|
|||
SDL_RenderPresent(data->renderer);
|
||||
|
||||
if (map)
|
||||
munmap(map, buf->datas[0].maxsize);
|
||||
munmap(map, buf->datas[0].maxsize + buf->datas[0].mapoffset);
|
||||
|
||||
pw_stream_recycle_buffer(stream, id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue