Fix memory leak which also causes strange flickering in the audio
[dcpomatic.git] / src / wx / audio_plot.cc
index 629de77672864eaf056b34310d665845dbdac267..b8b14b2e699762ac0a061b8dbcd9474bfbe8c075 100644 (file)
@@ -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;
        }