aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-23 14:37:12 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-24 13:56:36 +0200
commitadd96b37a65fa40e87fd1f3eb9bead896fc2ae8f (patch)
tree78a7bfde8dbd776c1cb6002f33ddbd0ab1313648 /tools
parentc2e8b65d0f77e7b93c4676df74bb0cf706e5665b (diff)
downloadfiv-add96b37a65fa40e87fd1f3eb9bead896fc2ae8f.tar.gz
fiv-add96b37a65fa40e87fd1f3eb9bead896fc2ae8f.tar.xz
fiv-add96b37a65fa40e87fd1f3eb9bead896fc2ae8f.zip
Stop abusing Cairo user data, part 1
This commit temporarily breaks multi-page images and animations.
Diffstat (limited to 'tools')
-rw-r--r--tools/benchmark-io.c4
1 files changed, 2 insertions, 2 deletions
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;