From 6c325d2e01533d3d3eb4e29246d581c29c078e0a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 19 Jan 2009 11:25:04 +0000 Subject: [PATCH] Fix memleak of GstCaps during decoding. --- swfdec/swfdec_codec_gst.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/swfdec/swfdec_codec_gst.c b/swfdec/swfdec_codec_gst.c index 4eef8d9..0edab67 100644 --- a/swfdec/swfdec_codec_gst.c +++ b/swfdec/swfdec_codec_gst.c @@ -307,6 +307,7 @@ swfdec_gst_decoder_push (SwfdecGstDecoder *dec, GstBuffer *buffer) gst_pad_set_caps (dec->src, caps); } gst_buffer_set_caps (buffer, GST_PAD_CAPS (dec->src)); + gst_caps_unref (caps); } ret = gst_pad_push (dec->src, buffer); -- 1.6.0.4