Free initial swscale context, too. Avoids a valgrind warning.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 19 Aug 2009 08:21:55 +0000 (08:21 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 19 Aug 2009 08:21:55 +0000 (08:21 +0000)
Originally committed as revision 29538 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale-example.c

index 2b179bd..9359e1e 100644 (file)
@@ -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);