diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-12 15:36:06 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-12 15:36:06 +0200 |
commit | 57478e2125b92050a2106136e3d54fc029675efc (patch) | |
tree | 436415e2b97a6184cc4c6754d3f5e6314e9d8367 | |
parent | a2a0cd196e4ef317bd3f536a644b13eaafb51881 (diff) | |
download | cqrlogo-57478e2125b92050a2106136e3d54fc029675efc.tar.gz cqrlogo-57478e2125b92050a2106136e3d54fc029675efc.tar.zst |
free same as allocated
-rw-r--r-- | cqrlogo.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -92,9 +92,8 @@ int generate_png (struct bitmap_t *bitmap, const char *uri) { png_set_rows (png_ptr, info_ptr, row_pointers); png_write_png (png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, NULL); - for (y = 0; y < bitmap->height; y++) { + for (y = 0; y < bitmap->height; ++y) png_free (png_ptr, row_pointers[y]); - } png_free (png_ptr, row_pointers); return 0; |