Unused timer caused random startup crash on windows?

This commit is contained in:
Charles J. Cliffe 2014-12-28 14:19:43 -05:00
parent 1e970f4373
commit b9ead19981
2 changed files with 1 additions and 5 deletions

View File

@ -27,7 +27,7 @@ wxEND_EVENT_TABLE()
SpectrumCanvas::SpectrumCanvas(wxWindow *parent, int *attribList) :
wxGLCanvas(parent, wxID_ANY, attribList, wxDefaultPosition, wxDefaultSize,
wxFULL_REPAINT_ON_RESIZE), parent(parent), frameTimer(0), fft_size(0), in(NULL), out(NULL), plan(NULL) {
wxFULL_REPAINT_ON_RESIZE), parent(parent), fft_size(0), in(NULL), out(NULL), plan(NULL) {
glContext = new SpectrumContext(this, &wxGetApp().GetContext(this));
@ -60,8 +60,6 @@ void SpectrumCanvas::Setup(int fft_size_in) {
fft_ceil_ma = fft_ceil_maa = 100.0;
fft_floor_ma = fft_floor_maa = 0.0;
timer.start();
}
SpectrumCanvas::~SpectrumCanvas() {

View File

@ -46,8 +46,6 @@ private:
std::vector<float> fft_result_maa;
SpectrumContext *glContext;
Timer timer;
float frameTimer;
int fft_size;
MouseTracker mTracker;