From 5351a0970c7951190b4e518967040ad3caed70d6 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. Cherry-picked from 6b1d9adcf6e75fc8e441b61108a2169bda6a6094 in v2.15.x. --- 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 079f69cdc..2c297a7a8 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -145,6 +145,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