changeset 29496:a307b7206944

Free initial swscale context, too. Avoids a valgrind warning.
author reimar
date Wed, 19 Aug 2009 08:21:55 +0000
parents 735f494d56e0
children 45583990d5dd
files libswscale/swscale-example.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-example.c	Wed Aug 19 08:18:53 2009 +0000
+++ b/libswscale/swscale-example.c	Wed Aug 19 08:21:55 2009 +0000
@@ -235,6 +235,7 @@
         }
     }
     sws_scale(sws, rgb_src, rgb_stride, 0, H, src, stride);
+    sws_freeContext(sws);
 
     selfTest(src, stride, W, H);