Commit db6ee543 authored by James Zern's avatar James Zern
Browse files

vpxenc: free resources

Free buffers allocated for y4m input and webm cue list.

Change-Id: I02051baae3b45f692cf5c7f520ea9a2d80c7b470
parent 7296b3f9
......@@ -2040,10 +2040,14 @@ int main(int argc, const char **argv_)
vpx_codec_destroy(&encoder);
fclose(infile);
if (file_type == FILE_TYPE_Y4M)
y4m_input_close(&y4m);
if(write_webm)
{
write_webm_file_footer(&ebml, hash);
free(ebml.cue_list);
ebml.cue_list = NULL;
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment