Skip to content
Snippets Groups Projects
Commit 1bbefa08 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

mmal: vout: fix leaks when allocations fail

parent 1b569d1f
No related branches found
No related tags found
No related merge requests found
......@@ -547,6 +547,13 @@ static picture_pool_t *vd_pool(vout_display_t *vd, unsigned count)
}
out:
if (!sys->picture_pool)
{
while(i-- != 0)
picture_Release(sys->pictures[i]);
free(sys->pictures);
sys->pictures = NULL;
}
return sys->picture_pool;
}
......
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