avvidenc: plug input_state leak

This commit is contained in:
Mark Nauwelaerts 2013-12-07 12:10:13 +01:00
parent 423d9dcd71
commit 1aa253cd3b

View file

@ -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;
}