summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mnauw@users.sourceforge.net>2013-12-07 11:10:13 (GMT)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>2013-12-07 11:11:03 (GMT)
commit1aa253cd3bdf34968f8333da83e90afe3306cf0e (patch)
tree7ef2ef4f43bc2df1ee9350f2a694e03b3f566bd3
parent423d9dcd71feeb773058dd0e4079c85152ae2901 (diff)
downloadgst-libav-1aa253cd3bdf34968f8333da83e90afe3306cf0e.tar.gz
gst-libav-1aa253cd3bdf34968f8333da83e90afe3306cf0e.tar.xz
avvidenc: plug input_state leak
-rw-r--r--ext/libav/gstavvidenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c
index ab570f9..6f32627 100644
--- a/ext/libav/gstavvidenc.c
+++ b/ext/libav/gstavvidenc.c
@@ -859,6 +859,10 @@ gst_ffmpegvidenc_stop (GstVideoEncoder * encoder)
g_free (ffmpegenc->working_buf);
ffmpegenc->working_buf = NULL;
}
+ if (ffmpegenc->input_state) {
+ gst_video_codec_state_unref (ffmpegenc->input_state);
+ ffmpegenc->input_state = NULL;
+ }
return TRUE;
}