changeset 29541:b5a8ade9175b

swscale-example: Free memory used by input data.
author ramiro
date Sat, 29 Aug 2009 03:36:09 +0000
parents 0f86c85da42a
children 3e7ffd70b12b
files libswscale/swscale-example.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-example.c	Sat Aug 29 02:44:03 2009 +0000
+++ b/libswscale/swscale-example.c	Sat Aug 29 03:36:09 2009 +0000
@@ -236,8 +236,10 @@
     }
     sws_scale(sws, rgb_src, rgb_stride, 0, H, src, stride);
     sws_freeContext(sws);
+    free(rgb_data);
 
     selfTest(src, stride, W, H);
+    free(data);
 
     return 0;
 }