diff options
author | Brian Paul <[email protected]> | 2005-08-09 15:17:19 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-08-09 15:17:19 +0000 |
commit | d2e289c70f2b9fb882f5b3992b610a9ea5c8357c (patch) | |
tree | 732303e796c055e7e494ba2881842ef2aeb1f1ca /src/mesa/drivers | |
parent | e78a3c42e4ab40113ad9a69c2dc4e2294c2f7894 (diff) |
actually free the renderbuffer in xmesa_delete_renderbuffer(), fixes a memory leak
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/x11/xm_buffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_buffer.c b/src/mesa/drivers/x11/xm_buffer.c index 9f481aaba12..593ac2bb19c 100644 --- a/src/mesa/drivers/x11/xm_buffer.c +++ b/src/mesa/drivers/x11/xm_buffer.c @@ -33,7 +33,11 @@ static void xmesa_delete_renderbuffer(struct gl_renderbuffer *rb) { - /* XXX this routine should really delete the attached ximage, etc. */ + /* XXX Note: the ximage or Pixmap attached to this renderbuffer + * should probably get freed here, but that's currently done in + * XMesaDestroyBuffer(). + */ + _mesa_free(rb); } |