--- branches/dev-api-3/vfw/src/2pass.c 2002/12/14 05:37:07 713 +++ branches/dev-api-3/vfw/src/2pass.c 2002/12/14 05:39:54 714 @@ -49,6 +49,11 @@ double total2 = 0.0; double dbytes, dbytes2; + /* ensure free() is called safely */ + codec->twopass.hintstream = NULL; + twopass->nns1_array = NULL; + twopass->nns2_array = NULL; + if (codec->config.hinted_me) { codec->twopass.hintstream = malloc(100000);