qtdemux: Fix buffer leak with corrupted files
authorJonas Larsson <jonas.larsson@hiq.se>
Tue, 24 May 2011 07:48:56 +0000 (09:48 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 24 May 2011 07:48:56 +0000 (09:48 +0200)
Fixes bug #650912.

gst/isomp4/qtdemux.c

index 416b164..898fc71 100644 (file)
@@ -2723,6 +2723,7 @@ gst_qtdemux_loop_state_header (GstQTDemux * qtdemux)
             ("We got less than expected (received %u, wanted %u, offset %"
                 G_GUINT64_FORMAT ")",
                 GST_BUFFER_SIZE (moov), (guint) length, cur_offset));
+        gst_buffer_unref (moov);
         ret = GST_FLOW_ERROR;
         goto beach;
       }