qtmux: Fix memory leak on atoms recovery function
authorThiago Santos <thiago.sousa.santos@collabora.com>
Sun, 9 Oct 2011 14:18:18 +0000 (11:18 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Sun, 9 Oct 2011 14:18:18 +0000 (11:18 -0300)
Remember to free the ftyp data after writing it to a file.

Fixes #660969

gst/isomp4/atomsrecovery.c

index 1f5a287..1190ec1 100644 (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;
 }