diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-12-30 17:48:43 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-12-31 12:30:30 +0000 |
commit | 164d9d26ac33029287a24fbed549e3a2858d5d51 (patch) | |
tree | 717c811f7481611406b794ad82d6a5c1446360a3 /tests/kms_pipe_crc_basic.c | |
parent | 9d6cfa6b59d0c22cf772ca71069f9e5f3e53d055 (diff) |
kmstest: Fix up lifetimes of cairo objects
cairo_t is the short lived drawing context, whereas cairo_surface_t is
the heavyweight object that persists and is also tied to underlying GEM
objects. So make the kmstest API reflect the different weights and fix
the lifetime and underlying object reference leaks.
Based on the fix by Paulo Zanoni.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 3fc59344..f4a97ebb 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -100,6 +100,7 @@ connector_set_mode(data_t *data, connector_t *connector, drmModeModeInfo *mode) kmstest_paint_color(cr, 0, 0, mode->hdisplay, mode->vdisplay, 0.0, 1.0, 0.0); igt_assert(cairo_status(cr) == 0); + cairo_destroy(cr); #if 0 fprintf(stdout, "Using pipe %c, %dx%d\n", pipe_name(config->pipe), |