summaryrefslogtreecommitdiff
path: root/extra/mjpegtools/png2yuv-fix-memleak.patch
blob: a6f03a4e1511b7be7e6637a18c6c66ea49dd4220 (plain)
1
2
3
4
5
6
7
8
9
10
--- mjpegtools-1.9.0/lavtools/png2yuv.c.orig	2010-01-17 14:26:24.000000000 +0100
+++ mjpegtools-1.9.0/lavtools/png2yuv.c	2010-01-17 14:27:53.000000000 +0100
@@ -407,6 +407,7 @@
     return 2;
     }
 
+  png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
   fclose(pngfile);
 
   return 1;