diff options
author | Brian Paul <[email protected]> | 2012-08-30 09:27:16 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-08-31 08:04:40 -0600 |
commit | 8472bb4508515cf0f717344ef5cc863b6e97e56a (patch) | |
tree | f3c65fc4fabdba447998c34eed021b043676a39a /src/mesa/swrast/s_renderbuffer.c | |
parent | 2d2f1fd164218eacf2b142bc808be1f25f66e72c (diff) |
mesa: fix-up and use _mesa_delete_renderbuffer()
_mesa_delete_renderbuffer() should free the mutex (though that may be a
no-op) and then free the renderbuffer object itself. Subclasses of
gl_renderbuffer can use this function too.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_renderbuffer.c')
-rw-r--r-- | src/mesa/swrast/s_renderbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_renderbuffer.c b/src/mesa/swrast/s_renderbuffer.c index d8a7467b08d..e468bdb16b0 100644 --- a/src/mesa/swrast/s_renderbuffer.c +++ b/src/mesa/swrast/s_renderbuffer.c @@ -174,7 +174,7 @@ soft_renderbuffer_delete(struct gl_renderbuffer *rb) free(srb->Buffer); srb->Buffer = NULL; } - free(srb); + _mesa_delete_renderbuffer(rb); } |