summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-07-29 22:29:45 +0200
committerCarl Hetherington <cth@carlh.net>2020-07-29 22:29:45 +0200
commit6b1d9adcf6e75fc8e441b61108a2169bda6a6094 (patch)
tree0ea75887de2189a36c01668bcd91408d48ac6196
parente3c7656f9dc0acbaf518c051b847ee2e4eb7ba23 (diff)
Fix memory leak which also causes strange flickering in the audio
analysis window while the analysis is running.
-rw-r--r--src/wx/audio_plot.cc1
1 files changed, 1 insertions, 0 deletions
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;
}