From 090e3a6f41c0016bf7d96c93970a6ebd0224603f Mon Sep 17 00:00:00 2001 From: Jonas Larsson Date: Tue, 24 May 2011 09:48:56 +0200 Subject: [PATCH] qtdemux: Fix buffer leak with corrupted files Fixes bug #650912. --- gst/isomp4/qtdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 416b164e54..898fc71f6d 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -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; }