projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
525d5c7
)
Fix memory leak which also causes strange flickering in the audio
author
Carl Hetherington
<cth@carlh.net>
Wed, 29 Jul 2020 20:29:45 +0000
(22:29 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 29 Jul 2020 20:38:50 +0000
(20:38 +0000)
analysis window while the analysis is running.
Cherry-picked from
6b1d9adcf6e75fc8e441b61108a2169bda6a6094
in
v2.15.x.
src/wx/audio_plot.cc
patch
|
blob
|
history
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);
if (!_analysis || _analysis->channels() == 0) {
gc->SetFont (gc->CreateFont (*wxNORMAL_FONT));
gc->DrawText (_message, 32, 32);
+ delete gc;
return;
}
return;
}