[master] Free png_ptr->user_png_ver when destroying png_ptr.
This commit is contained in:
parent
c75d7fb32e
commit
8e46375186
1
ANNOUNCE
1
ANNOUNCE
@ -107,6 +107,7 @@ version 1.2.41beta11 [November 2, 2009]
|
||||
library mismatch.
|
||||
|
||||
version 1.2.41beta12 [November 2, 2009]
|
||||
Free png_ptr->user_png_ver when destroying png_ptr.
|
||||
|
||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||
|
||||
|
1
CHANGES
1
CHANGES
@ -2537,6 +2537,7 @@ version 1.2.41beta11 [November 2, 2009]
|
||||
library mismatch.
|
||||
|
||||
version 1.2.41beta12 [November 2, 2009]
|
||||
Free png_ptr->user_png_ver when destroying png_ptr.
|
||||
|
||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||
(subscription required; visit
|
||||
|
@ -1326,6 +1326,11 @@ png_read_destroy(png_structp png_ptr, png_infop info_ptr, png_infop end_info_ptr
|
||||
#endif /* PNG_TEXT_SUPPORTED */
|
||||
#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */
|
||||
|
||||
/* New member added in libpng-1.2.41, will be removed from 1.4.0 */
|
||||
#ifdef PNG_iTXt_SUPPORTED
|
||||
png_free(png_ptr, png_ptr->user_png_ver);
|
||||
#endif
|
||||
|
||||
/* Save the important info out of the png_struct, in case it is
|
||||
* being used again.
|
||||
*/
|
||||
|
@ -1179,6 +1179,11 @@ png_write_destroy(png_structp png_ptr)
|
||||
free_fn = png_ptr->free_fn;
|
||||
#endif
|
||||
|
||||
/* New member added in libpng-1.2.41, will be removed from 1.4.0 */
|
||||
#ifdef PNG_iTXt_SUPPORTED
|
||||
png_free(png_ptr, png_ptr->user_png_ver);
|
||||
#endif
|
||||
|
||||
png_memset(png_ptr, 0, png_sizeof(png_struct));
|
||||
|
||||
png_ptr->error_fn = error_fn;
|
||||
|
Reference in New Issue
Block a user