aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-19 08:21:55 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-19 08:21:55 +0000
commit64d39b7c7630e15127f1ae2e1c8dba72265ca5c6 (patch)
treeab802aec1a722d9204de8bb8e47283ad5498762b
parent7b67bd92f4c4081bb8cf015ca634d2333f578403 (diff)
downloadffmpeg-64d39b7c7630e15127f1ae2e1c8dba72265ca5c6.tar.gz
Free initial swscale context, too. Avoids a valgrind warning.
Originally committed as revision 29538 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r--libswscale/swscale-example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c
index 2b179bdc83..9359e1ecab 100644
--- a/libswscale/swscale-example.c
+++ b/libswscale/swscale-example.c
@@ -235,6 +235,7 @@ int main(int argc, char **argv)
}
}
sws_scale(sws, rgb_src, rgb_stride, 0, H, src, stride);
+ sws_freeContext(sws);
selfTest(src, stride, W, H);