Commit ca417fd3 authored by Thiago Santos's avatar Thiago Santos

qtmux: Fix memory leak on atoms recovery function

Remember to free the ftyp data after writing it to a file.

Fixes #660969
parent be82dd8e
......@@ -117,8 +117,10 @@ atoms_recov_write_ftyp_info (FILE * f, AtomFTYP * ftyp, GstBuffer * prefix)
return FALSE;
}
if (fwrite (data, 1, offset, f) != offset) {
g_free (data);
return FALSE;
}
g_free (data);
return TRUE;
}
......
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