qtmux: Fix memory leak on atoms recovery function

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

Fixes #660969
This commit is contained in:
Thiago Santos 2011-10-09 11:18:18 -03:00
parent be82dd8e3a
commit ca417fd376

View file

@ -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;
}