summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-04-29 17:31:27 +0200
committerMarek Olšák <[email protected]>2012-04-29 17:31:27 +0200
commit7622496d7b8fb4677a66d8843c078b3fa753f02f (patch)
tree622f041abe37d84d6232d7360640a76ca05e2355
parent63ca2eda1374cd0754ed7e209508f2b80c38b488 (diff)
u_blitter: fix resource leak
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 6a9141209bb..d0b9187d1f9 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -733,6 +733,7 @@ static void blitter_draw(struct blitter_context_priv *ctx,
u_upload_unmap(ctx->upload);
util_draw_vertex_buffer(ctx->base.pipe, NULL, buf, offset,
PIPE_PRIM_TRIANGLE_FAN, 4, 2);
+ pipe_resource_reference(&buf, NULL);
}
static void blitter_draw_rectangle(struct blitter_context *blitter,