summaryrefslogtreecommitdiffstats
path: root/libdimension/png.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/png.c')
-rw-r--r--libdimension/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/png.c b/libdimension/png.c
index d8b47fe..ec2b980 100644
--- a/libdimension/png.c
+++ b/libdimension/png.c
@@ -44,7 +44,7 @@ dmnsn_png_optimize_canvas(dmnsn_canvas *canvas)
dmnsn_canvas_optimizer optimizer;
optimizer.optimizer_fn = &dmnsn_png_optimizer_fn;
- optimizer.free_fn = &free;
+ optimizer.free_fn = &dmnsn_free;
optimizer.ptr = dmnsn_malloc(4*canvas->x*canvas->y*sizeof(uint16_t));