projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak which also causes strange flickering in the audio
[dcpomatic.git]
/
src
/
wx
/
audio_plot.cc
diff --git
a/src/wx/audio_plot.cc
b/src/wx/audio_plot.cc
index 079f69cdc005cc03478f7a370376ef5909bd7d63..2c297a7a8e3d33919bcedbb4b78ea4c399fe2376 100644
(file)
--- 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;
}