From: Carl Hetherington Date: Wed, 29 Jul 2020 20:29:45 +0000 (+0200) Subject: Fix memory leak which also causes strange flickering in the audio X-Git-Tag: v2.15.94~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6b1d9adcf6e75fc8e441b61108a2169bda6a6094 Fix memory leak which also causes strange flickering in the audio analysis window while the analysis is running. --- 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; }