From 1cc9b1423c5df591c615ef9588b6eefd81448f80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejtm=C3=A1nek?= Date: Fri, 6 Mar 2009 14:44:03 -0500 Subject: Fix another VT switch leak The batch_bo buffer object is reallocated on enter VT, so we need to unref it on leave vt. Signed-off-by: Lukas Hejtmanek --- src/i830_batchbuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i830_batchbuffer.c b/src/i830_batchbuffer.c index 671e8c87..33da43e5 100644 --- a/src/i830_batchbuffer.c +++ b/src/i830_batchbuffer.c @@ -159,6 +159,7 @@ intel_batch_teardown(ScrnInfoPtr pScrn) if (pI830->batch_ptr != NULL) { dri_bo_unmap(pI830->batch_bo); + dri_bo_unreference(pI830->batch_bo); pI830->batch_ptr = NULL; } } -- cgit v1.2.3