[965] Fix memory leak when deleting buffers with backing store.

This commit is contained in:
Tony DeFeo 2008-02-05 10:49:44 -08:00 committed by Eric Anholt
parent 97196d0c8c
commit ae5c6dcd42

View file

@ -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);
}