oggmux: fix leaks in skeleton writing
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 24 Aug 2011 16:39:11 +0000 (17:39 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 25 Aug 2011 06:32:26 +0000 (08:32 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=563251

ext/ogg/gstoggmux.c

index c80c63b..f95402a 100644 (file)
@@ -1232,9 +1232,10 @@ gst_ogg_mux_add_fisbone_message_header_from_tags (GstOggMux * mux,
       g_string_append (s, ", ");
     gst_tag_list_get_string_index (tags, tag, n, &tmp);
     g_string_append (s, tmp);
+    g_free (tmp);
   }
   gst_ogg_mux_add_fisbone_message_header (mux, bw, header, s->str);
-  g_string_free (s, FALSE);
+  g_string_free (s, TRUE);
 }
 
 /* This is a basic placeholder to generate roles for the tracks.