[Mesa-dev] [PATCH] u_primconvert: Fix leak of the upload BO on context destroy.

Eric Anholt eric at anholt.net
Tue Dec 30 16:13:58 PST 2014


---
 src/gallium/auxiliary/indices/u_primconvert.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c
index eba1f9e..11fceaf 100644
--- a/src/gallium/auxiliary/indices/u_primconvert.c
+++ b/src/gallium/auxiliary/indices/u_primconvert.c
@@ -74,6 +74,7 @@ util_primconvert_create(struct pipe_context *pipe, uint32_t primtypes_mask)
 void
 util_primconvert_destroy(struct primconvert_context *pc)
 {
+   u_upload_destroy(pc->upload);
    util_primconvert_save_index_buffer(pc, NULL);
    FREE(pc);
 }
-- 
2.1.3



More information about the mesa-dev mailing list