[Intel-gfx] [PATCH] Another VT switch leak
Lukas Hejtmanek
xhejtman at ics.muni.cz
Thu Mar 5 11:28:49 CET 2009
Hello,
it seems there is another little leak in batchbuffer teardown code.
pI830->batch_bo seems to be still referenced after intel_batch_teardown.
Signed-off-by: Lukas Hejtmanek <xhejtman at ics.muni.cz>
diff --git a/src/i830_batchbuffer.c b/src/i830_batchbuffer.c
index 671e8c8..b81303a 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);
+ drm_intel_bo_unreference(pI830->batch_bo);
pI830->batch_ptr = NULL;
}
}
--
Lukáš Hejtmánek
More information about the Intel-gfx
mailing list