From 5a0354b416b29b9923d28148553882e8f8d7348e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 27 Feb 2012 13:08:36 +0100 Subject: [PATCH] audioencoder: don't leak event --- gst-libs/gst/audio/gstaudioencoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index f54ece8fc0..13c523e66a 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -1395,8 +1395,10 @@ gst_audio_encoder_sink_event (GstPad * pad, GstObject * parent, if (klass->event) ret = klass->event (enc, event); - else + else { + gst_event_unref (event); ret = FALSE; + } GST_DEBUG_OBJECT (enc, "event result %d", ret); -- 2.34.1