aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-08-29 03:36:09 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-08-29 03:36:09 +0000
commit111641a97a14c9b5c768f9a1d93d036f93392ad1 (patch)
treef713a6a9e4db9fce08353b84fab727a75b50cc01
parent0607b09069896fb1905e5bdb8ddc040bb9b6e587 (diff)
downloadffmpeg-111641a97a14c9b5c768f9a1d93d036f93392ad1.tar.gz
swscale-example: Free memory used by input data.
Originally committed as revision 29583 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r--libswscale/swscale-example.c2
1 files changed, 2 insertions, 0 deletions
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;
}