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