mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
be82dd8e3a
commit
ca417fd376
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue