diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-11-13 09:52:38 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-11-13 09:52:38 +0100 |
commit | 9ea0691391b9dda7f205ec2cc5acf531d2b427d1 (patch) | |
tree | 9f103adafd7f8be9c95d06d06a6688cad0905e57 /nxcompext/Pgn.c | |
parent | f2f6dab87b8a2c066c5eb242ca73b85f2796a5c0 (diff) | |
download | nx-libs-9ea0691391b9dda7f205ec2cc5acf531d2b427d1.tar.gz nx-libs-9ea0691391b9dda7f205ec2cc5acf531d2b427d1.tar.bz2 nx-libs-9ea0691391b9dda7f205ec2cc5acf531d2b427d1.zip |
Imported nxcompext-3.3.0-4.tar.gznxcompext/3.3.0-4
Summary: Imported nxcompext-3.3.0-4.tar.gz
Keywords:
Imported nxcompext-3.3.0-4.tar.gz
into Git repository
Diffstat (limited to 'nxcompext/Pgn.c')
-rw-r--r-- | nxcompext/Pgn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nxcompext/Pgn.c b/nxcompext/Pgn.c index db14f51e3..d8fa919cc 100644 --- a/nxcompext/Pgn.c +++ b/nxcompext/Pgn.c @@ -548,13 +548,14 @@ char *PngCompressData(XImage *image, int *compressed_size) } png_write_end(png_ptr, NULL); - png_destroy_write_struct(&png_ptr, &info_ptr); if (color_type == PNG_COLOR_TYPE_PALETTE) { png_free(png_ptr, palette); } + png_destroy_write_struct(&png_ptr, &info_ptr); + /* * Check the size of the resulting data. */ |