From 20806e4c16d45602778d744d363b341711d9c2da Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 6 Sep 2012 13:04:56 +0200 Subject: [PATCH] videoencoder: plug some leaks --- gst-libs/gst/video/gstvideoencoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/video/gstvideoencoder.c b/gst-libs/gst/video/gstvideoencoder.c index e73705b2c0..f3f0ce1eed 100644 --- a/gst-libs/gst/video/gstvideoencoder.c +++ b/gst-libs/gst/video/gstvideoencoder.c @@ -1011,6 +1011,7 @@ gst_video_encoder_sink_event_default (GstVideoEncoder * encoder, gst_tag_list_remove_tag (tags, GST_TAG_ENCODER_VERSION); gst_video_encoder_merge_tags (encoder, tags, GST_TAG_MERGE_REPLACE); + gst_tag_list_unref (tags); gst_event_unref (event); event = NULL; ret = TRUE; @@ -1250,6 +1251,7 @@ gst_video_encoder_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) gst_caps_unref (caps); goto not_negotiated; } + gst_caps_unref (caps); encoder->priv->do_caps = FALSE; } -- 2.34.1