From 06de84c7477e9c917d44ff793aecd65e3a3226f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 11 Dec 2012 10:34:42 +0000 Subject: [PATCH] avviddec: Fix memory leak if we already allocated an output buffer for the frame --- ext/libav/gstavviddec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 29d7e722d9..fd459c5d48 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -588,6 +588,7 @@ fallback: duplicate_frame: { GST_WARNING_OBJECT (ffmpegdec, "already alloc'ed output buffer for frame"); + gst_video_codec_frame_unref (frame); return -1; } no_frame: