]> git.videolan.org Git - x264.git/commitdiff
VfW: prevent duplicate free() in compress_end()
authorLoren Merritt <pengvado@videolan.org>
Mon, 10 Oct 2005 01:29:17 +0000 (01:29 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 10 Oct 2005 01:29:17 +0000 (01:29 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@326 df754926-b1dd-0310-bc7b-ec298dee348c

vfw/codec.c

index 21b921bf629cdc5f7b0e8932a596746ac9a4c34d..a30eb434481edc985e579f7518106556d550e436 100644 (file)
@@ -348,6 +348,7 @@ LRESULT compress_end(CODEC * codec)
     }
 
     free( codec->hCons );
+    codec->hCons = NULL;
     return ICERR_OK;
 }