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.14.35~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=5351a0970c7951190b4e518967040ad3caed70d6;ds=sidebyside 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. --- 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; }