examples: fix some leaks

This commit is contained in:
Wim Taymans 2017-08-16 13:32:08 +02:00
parent 27f811d726
commit 8f7a19f2e3
3 changed files with 3 additions and 3 deletions

View file

@ -389,7 +389,7 @@ static int impl_node_process_input(void *data)
SDL_RenderPresent(d->renderer);
if (map)
munmap(map, buf->datas[0].maxsize);
munmap(map, buf->datas[0].maxsize + buf->datas[0].mapoffset);
handle_events(d);