From add96b37a65fa40e87fd1f3eb9bead896fc2ae8f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 23 Jun 2023 14:37:12 +0200 Subject: Stop abusing Cairo user data, part 1 This commit temporarily breaks multi-page images and animations. --- tools/benchmark-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/benchmark-io.c b/tools/benchmark-io.c index 3acb140..3dadaae 100644 --- a/tools/benchmark-io.c +++ b/tools/benchmark-io.c @@ -41,14 +41,14 @@ one_file(const char *filename) .warnings = g_ptr_array_new_with_free_func(g_free), }; - cairo_surface_t *loaded_by_us = fiv_io_open(&ctx, NULL); + FivIoImage *loaded_by_us = fiv_io_open(&ctx, NULL); g_clear_object(&file); g_free((char *) ctx.uri); g_ptr_array_free(ctx.warnings, TRUE); if (!loaded_by_us) return; - cairo_surface_destroy(loaded_by_us); + fiv_io_image_unref(loaded_by_us); us = timestamp() - since_us; double since_pixbuf = timestamp(), pixbuf = 0; -- cgit v1.2.3-70-g09d2