diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-26 00:54:20 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-26 00:54:20 +0000 |
commit | e9c25fd00ec34e0a7ca421b1ac230db157985f92 (patch) | |
tree | 132b185e0e6b7516285b9a084e5a1ee65c166889 /libdimension/png.c | |
parent | 0bb6bfe0b08eb9fc2ba62f64bdb21cb5b592c292 (diff) | |
download | dimension-e9c25fd00ec34e0a7ca421b1ac230db157985f92.tar.xz |
Don't check if it's too late to add canvas optimizers.
This fixes some errors displayed by concurrency checkers like helgrind and drd.
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; } |