diff --git a/libaegisub/audio/provider.cpp b/libaegisub/audio/provider.cpp index df2af5b6d..ad0f2e679 100644 --- a/libaegisub/audio/provider.cpp +++ b/libaegisub/audio/provider.cpp @@ -116,6 +116,7 @@ void AudioProvider::FillBufferInt16Mono(int16_t* buf, int64_t start, int64_t cou buf[i] = DownmixToMono(ConvertIntToInt16(buff, bytes_per_sample), channels)[i]; } } + free(buff); } void AudioProvider::GetInt16MonoAudioWithVolume(int16_t *buf, int64_t start, int64_t count, double volume) const { diff --git a/src/audio_renderer_waveform.cpp b/src/audio_renderer_waveform.cpp index 789dca024..94da035f5 100644 --- a/src/audio_renderer_waveform.cpp +++ b/src/audio_renderer_waveform.cpp @@ -80,9 +80,6 @@ void AudioWaveformRenderer::Render(wxBitmap &bmp, int start, AudioRenderingStyle double cur_sample = start * pixel_samples; - assert(provider->GetBytesPerSample() == 2); - assert(provider->GetChannels() == 1); - wxPen pen_peaks(wxPen(pal->get(0.4f))); wxPen pen_avgs(wxPen(pal->get(0.7f)));