diff options
Diffstat (limited to 'libdimension/png.c')
-rw-r--r-- | libdimension/png.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libdimension/png.c b/libdimension/png.c index 83eb38e..bc547a1 100644 --- a/libdimension/png.c +++ b/libdimension/png.c @@ -54,11 +54,7 @@ dmnsn_png_optimize_canvas(dmnsn_canvas *canvas) return 1; } - if (dmnsn_optimize_canvas(canvas, optimizer) != 0) { - free(optimizer.ptr); - return 1; - } - + dmnsn_optimize_canvas(canvas, optimizer); return 0; } |