29 |
{ |
{ |
30 |
/* Free all of the memory associated with the png_ptr and info_ptr */ |
/* Free all of the memory associated with the png_ptr and info_ptr */ |
31 |
png_destroy_write_struct(&m_pPNG, &m_pPNGInfo); |
png_destroy_write_struct(&m_pPNG, &m_pPNGInfo); |
32 |
|
--- plugins/garble/xp/abiword-garble-png.cpp.libpng 2011-09-12 12:04:33.000000000 +0200 |
33 |
|
+++ plugins/garble/xp/abiword-garble-png.cpp 2011-09-12 12:09:38.000000000 +0200 |
34 |
|
@@ -79,7 +79,7 @@ |
35 |
|
png_set_strip_alpha( png_ptr ); |
36 |
|
png_set_interlace_handling( png_ptr ); |
37 |
|
png_set_bgr( png_ptr ); |
38 |
|
- rowbytes = info_ptr->rowbytes; |
39 |
|
+ rowbytes = png_get_rowbytes(png_ptr, info_ptr); |
40 |
|
png_destroy_read_struct( &png_ptr, &info_ptr, NULL ); |
41 |
|
} |
42 |
|
|