summaryrefslogtreecommitdiff
path: root/src/drm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-27 23:45:17 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-27 23:45:17 +0000
commit78cd9471200c69c8b3737e859260f4552145d958 (patch)
treee5df9e7b8ca3f3b1ac2eeb5d8577be51bd3321af /src/drm
parent5aa1191204e3eed6e3e97e23f37a52bbdfffcbce (diff)
drm: Paranoid assert that the fallback is released upon finish.
Diffstat (limited to 'src/drm')
-rw-r--r--src/drm/cairo-drm-surface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drm/cairo-drm-surface.c b/src/drm/cairo-drm-surface.c
index e37d3e2f..8d64134f 100644
--- a/src/drm/cairo-drm-surface.c
+++ b/src/drm/cairo-drm-surface.c
@@ -67,6 +67,8 @@ _cairo_drm_surface_init (cairo_drm_surface_t *surface,
cairo_status_t
_cairo_drm_surface_finish (cairo_drm_surface_t *surface)
{
+ assert (surface->fallback == NULL);
+
if (surface->bo != NULL)
cairo_drm_bo_destroy (surface->base.device, surface->bo);