mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
iris: fix a leak on surface states
Cc: mesa-stable
Closes:https://gitlab.freedesktop.org/mesa/mesa/-/issues/6013
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15010>
(cherry picked from commit ecc0041030)
This commit is contained in:
parent
4eff8db4ea
commit
f3cfbbd457
2 changed files with 2 additions and 1 deletions
|
|
@ -2470,7 +2470,7 @@
|
||||||
"description": "iris: fix a leak on surface states",
|
"description": "iris: fix a leak on surface states",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 0,
|
"nomination_type": 0,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": null
|
"because_sha": null
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2934,6 +2934,7 @@ iris_surface_destroy(struct pipe_context *ctx, struct pipe_surface *p_surf)
|
||||||
pipe_resource_reference(&surf->surface_state.ref.res, NULL);
|
pipe_resource_reference(&surf->surface_state.ref.res, NULL);
|
||||||
pipe_resource_reference(&surf->surface_state_read.ref.res, NULL);
|
pipe_resource_reference(&surf->surface_state_read.ref.res, NULL);
|
||||||
free(surf->surface_state.cpu);
|
free(surf->surface_state.cpu);
|
||||||
|
free(surf->surface_state_read.cpu);
|
||||||
free(surf);
|
free(surf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue