summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukáš Hejtmánek <xhejtman@ics.muni.cz>2009-03-06 14:44:03 -0500
committerKristian Høgsberg <krh@redhat.com>2009-03-06 14:44:03 -0500
commit1cc9b1423c5df591c615ef9588b6eefd81448f80 (patch)
tree818332ea721261d7c73df383ce3247bd16b9d859 /src
parent67fef27f4b76490be085d232aba0ca9cbb3c5e59 (diff)
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 <xhejtman@ics.muni.cz>
Diffstat (limited to 'src')
-rw-r--r--src/i830_batchbuffer.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}