summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/rbadaptors.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-25 10:39:36 -0600
committerBrian <[email protected]>2007-03-25 10:39:36 -0600
commit42aaa548a1020be5d40b3dce9448d8004b1ef947 (patch)
treee8543e05c9df7d8c34133eab3e219084a06b6eac /src/mesa/main/rbadaptors.c
parent6fda763989f9102399407098773de227abba822c (diff)
Fix some renderbuffer reference counting issues. Also fixes a mem leak.
Diffstat (limited to 'src/mesa/main/rbadaptors.c')
-rw-r--r--src/mesa/main/rbadaptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/rbadaptors.c b/src/mesa/main/rbadaptors.c
index 60f4948becf..c1ac0606c86 100644
--- a/src/mesa/main/rbadaptors.c
+++ b/src/mesa/main/rbadaptors.c
@@ -45,7 +45,7 @@ Delete_wrapper(struct gl_renderbuffer *rb)
/* Decrement reference count on the buffer we're wrapping and delete
* it if refcount hits zero.
*/
- _mesa_unreference_renderbuffer(&rb->Wrapped);
+ _mesa_reference_renderbuffer(&rb->Wrapped, NULL);
/* delete myself */
_mesa_delete_renderbuffer(rb);