From 289d5fc85ebd1cff2aabef2585dc27f4d98be213 Mon Sep 17 00:00:00 2001 From: ramiro Date: Sat, 29 Aug 2009 03:36:09 +0000 Subject: [PATCH] swscale-example: Free memory used by input data. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29583 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale-example.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c index 2eb58eb10b..44aef6a961 100644 --- a/libswscale/swscale-example.c +++ b/libswscale/swscale-example.c @@ -236,8 +236,10 @@ int main(int argc, char **argv) } 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; }