summaryrefslogtreecommitdiff
path: root/ext/vpx/gstvp8enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/vpx/gstvp8enc.c')
-rw-r--r--ext/vpx/gstvp8enc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/vpx/gstvp8enc.c b/ext/vpx/gstvp8enc.c
index f203cdc07..cfb5a2f6e 100644
--- a/ext/vpx/gstvp8enc.c
+++ b/ext/vpx/gstvp8enc.c
@@ -1461,6 +1461,10 @@ gst_vp8_enc_stop (GstVideoEncoder * video_encoder)
gst_tag_setter_reset_tags (GST_TAG_SETTER (encoder));
+ g_free (encoder->multipass_cache_file);
+ encoder->multipass_cache_file = NULL;
+ encoder->multipass_cache_idx = 0;
+
return TRUE;
}