mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
[965] Fix memory leak when deleting buffers with backing store.
This commit is contained in:
parent
97196d0c8c
commit
ae5c6dcd42
1 changed files with 3 additions and 0 deletions
|
|
@ -704,6 +704,9 @@ void bmDeleteBuffers(struct intel_context *intel, unsigned n, struct buffer **bu
|
|||
if (buf && buf->block)
|
||||
free_block(intel, buf->block);
|
||||
|
||||
if (buf && buf->backing_store)
|
||||
free_backing_store(intel, buf);
|
||||
|
||||
if (buf)
|
||||
free(buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue