From 6b1d9adcf6e75fc8e441b61108a2169bda6a6094 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 29 Jul 2020 22:29:45 +0200 Subject: [PATCH] Fix memory leak which also causes strange flickering in the audio analysis window while the analysis is running. --- src/wx/audio_plot.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index 629de7767..b8b14b2e6 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -150,6 +150,7 @@ AudioPlot::paint () if (!_analysis || _analysis->channels() == 0) { gc->SetFont (gc->CreateFont (*wxNORMAL_FONT)); gc->DrawText (_message, 32, 32); + delete gc; return; } -- 2.30.2