ref: b293fe71bd768cb27bf83efbeb4822f25cc8fb80
parent: 76e9fbe57a10fd3bc167fb40d08989b205568631
author: Jean-Marc Valin <[email protected]>
date: Fri May 5 13:00:37 EDT 2017
Fix leak
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -244,7 +244,6 @@
if (error) *error = OPE_BAD_ARG;
return NULL;
}
- /* FIXME: Add resampling support. */
if (rate <= 0) {
if (error) *error = OPE_BAD_ARG;
return NULL;
@@ -600,6 +599,9 @@
finalize_all_streams(enc);
if (enc->chaining_keyframe) free(enc->chaining_keyframe);
free(enc->buffer);
+#ifdef USE_OGGP
+ oggp_destroy(enc->oggp);
+#endif
opus_multistream_encoder_destroy(enc->st);
if (enc->re) speex_resampler_destroy(enc->re);
free(enc);