[master] Free png_ptr->user_png_ver when destroying png_ptr.
diff --git a/ANNOUNCE b/ANNOUNCE
index fda61ba..68fdbbd 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -107,6 +107,7 @@
     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
 
diff --git a/CHANGES b/CHANGES
index 0a58675..ee126e0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2537,6 +2537,7 @@
     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
diff --git a/pngread.c b/pngread.c
index c836e01..9e58f47 100644
--- a/pngread.c
+++ b/pngread.c
@@ -1326,6 +1326,11 @@
 #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.
     */
diff --git a/pngwrite.c b/pngwrite.c
index e08e960..991aa91 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -1179,6 +1179,11 @@
    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;