diff --git a/libobs/media-io/audio-resampler-ffmpeg.c b/libobs/media-io/audio-resampler-ffmpeg.c index a4fe92794..cd27a886f 100644 --- a/libobs/media-io/audio-resampler-ffmpeg.c +++ b/libobs/media-io/audio-resampler-ffmpeg.c @@ -121,7 +121,7 @@ void audio_resampler_destroy(audio_resampler_t *rs) if (rs) { if (rs->context) swr_free(&rs->context); - if (rs->output_buffer) + if (rs->output_buffer[0]) av_freep(&rs->output_buffer[0]); bfree(rs);