Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 212667 Details for
Bug 287725
media-libs/netpbm-10.48.00 regression on png files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch from netpbm's maintainer
png.patch (text/plain), 1.24 KB, created by
Sylvain Chevallier
on 2009-12-11 02:46:19 UTC
(
hide
)
Description:
patch from netpbm's maintainer
Filename:
MIME Type:
Creator:
Sylvain Chevallier
Created:
2009-12-11 02:46:19 UTC
Size:
1.24 KB
patch
obsolete
>Index: converter/other/pngx.c >=================================================================== >--- converter/other/pngx.c (revision 1021) >+++ converter/other/pngx.c (revision 1022) >@@ -69,6 +69,7 @@ > else > *pngxPP = pngxP; > } >+ pngxP->rw = rw; > } > } > >@@ -77,7 +78,14 @@ > void > pngx_destroy(struct pngx * const pngxP) { > >- png_destroy_write_struct(&pngxP->png_ptr, &pngxP->info_ptr); >+ switch(pngxP->rw) { >+ case PNGX_READ: >+ png_destroy_read_struct(&pngxP->png_ptr, &pngxP->info_ptr, NULL); >+ break; >+ case PNGX_WRITE: >+ png_destroy_write_struct(&pngxP->png_ptr, &pngxP->info_ptr); >+ break; >+ } > > free(pngxP); > } >Index: converter/other/pngx.h >=================================================================== >--- converter/other/pngx.h (revision 1021) >+++ converter/other/pngx.h (revision 1022) >@@ -5,14 +5,14 @@ > the PNG library easier and cleaner. > */ > >+typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw; >+ > struct pngx { > png_structp png_ptr; >- png_infop info_ptr; >+ png_infop info_ptr; >+ pngx_rw rw; > }; > >-typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw; >- >- > void > pngx_create(struct pngx ** const pngxPP, > pngx_rw const rw,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 287725
:
206064
| 212667