Commit 595038e5 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie
Browse files

renderer: fix subcontext surface leaks

Fix leaks found thanks to AddressSanitizer.
Signed-off-by: default avatarMarc-André Lureau <>
parent 97ce5ea3
......@@ -3828,6 +3828,15 @@ static void vrend_destroy_sub_context(struct vrend_sub_context *sub)
sub->consts[i].consts = NULL;
if (sub->zsurf)
vrend_surface_reference(&sub->zsurf, NULL);
for (i = 0; i < sub->nr_cbufs; i++) {
if (!sub->surf[i])
vrend_surface_reference(&sub->surf[i], NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment