diff options
author | Tony DeFeo <[email protected]> | 2008-02-05 10:49:44 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-02-05 10:49:44 -0800 |
commit | ae5c6dcd42168cc9d3b264f50c141164ce76d3f8 (patch) | |
tree | 9e61b0698f0e04ddce337bd6d80fcd9c788685f6 /src/mesa | |
parent | 97196d0c8cfc6ee5c9c9612c56440df987004bc1 (diff) |
[965] Fix memory leak when deleting buffers with backing store.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/bufmgr_fake.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/bufmgr_fake.c b/src/mesa/drivers/dri/i965/bufmgr_fake.c index 24ee11edd8c..fb4903dbc1d 100644 --- a/src/mesa/drivers/dri/i965/bufmgr_fake.c +++ b/src/mesa/drivers/dri/i965/bufmgr_fake.c @@ -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); } |