Fixed some memory leaks.

This commit is contained in:
james.k.crook@gmail.com 2014-10-24 16:52:17 +00:00
parent fbbab2ce1b
commit 7508f10f64
6 changed files with 4 additions and 5 deletions

View File

@ -1477,9 +1477,6 @@ void AudacityApp::FinishInits()
ModuleManager::Dispatch(AppInitialized);
mWindowRectAlreadySaved = FALSE;
mTimer = new wxTimer(this, kAudacityAppTimerID);
mTimer->Start(200);
}
void AudacityApp::InitCommandHandler()

View File

@ -210,8 +210,6 @@ class AudacityApp:public wxApp {
wxSingleInstanceChecker *mChecker;
wxTimer *mTimer;
bool m_aliasMissingWarningShouldShow;
BlockFile *m_LastMissingBlockFile;

View File

@ -179,6 +179,7 @@ void AudacityLogger::Show(bool show)
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
#endif
frame->SetIcon(*ic);
delete ic;
#endif
// Log text

View File

@ -74,6 +74,7 @@ LyricsWindow::LyricsWindow(AudacityProject *parent):
ic = new wxIcon(wxICON(AudacityLogo48x48));
#endif
SetIcon(*ic);
delete ic;
#endif
wxPoint panelPos(0, 0);

View File

@ -1736,6 +1736,7 @@ MixerBoardFrame::MixerBoardFrame(AudacityProject* parent)
ic = new wxIcon(wxICON(AudacityLogo48x48));
#endif
SetIcon(*ic);
delete ic;
#endif
}

View File

@ -998,6 +998,7 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
#endif
SetIcon(*ic);
delete ic;
#endif
mIconized = false;