Fixed some memory leaks.
This commit is contained in:
parent
fbbab2ce1b
commit
7508f10f64
|
@ -1477,9 +1477,6 @@ void AudacityApp::FinishInits()
|
|||
ModuleManager::Dispatch(AppInitialized);
|
||||
|
||||
mWindowRectAlreadySaved = FALSE;
|
||||
|
||||
mTimer = new wxTimer(this, kAudacityAppTimerID);
|
||||
mTimer->Start(200);
|
||||
}
|
||||
|
||||
void AudacityApp::InitCommandHandler()
|
||||
|
|
|
@ -210,8 +210,6 @@ class AudacityApp:public wxApp {
|
|||
|
||||
wxSingleInstanceChecker *mChecker;
|
||||
|
||||
wxTimer *mTimer;
|
||||
|
||||
bool m_aliasMissingWarningShouldShow;
|
||||
BlockFile *m_LastMissingBlockFile;
|
||||
|
||||
|
|
|
@ -179,6 +179,7 @@ void AudacityLogger::Show(bool show)
|
|||
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
|
||||
#endif
|
||||
frame->SetIcon(*ic);
|
||||
delete ic;
|
||||
#endif
|
||||
|
||||
// Log text
|
||||
|
|
|
@ -74,6 +74,7 @@ LyricsWindow::LyricsWindow(AudacityProject *parent):
|
|||
ic = new wxIcon(wxICON(AudacityLogo48x48));
|
||||
#endif
|
||||
SetIcon(*ic);
|
||||
delete ic;
|
||||
#endif
|
||||
|
||||
wxPoint panelPos(0, 0);
|
||||
|
|
|
@ -1736,6 +1736,7 @@ MixerBoardFrame::MixerBoardFrame(AudacityProject* parent)
|
|||
ic = new wxIcon(wxICON(AudacityLogo48x48));
|
||||
#endif
|
||||
SetIcon(*ic);
|
||||
delete ic;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -998,6 +998,7 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
|||
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
|
||||
#endif
|
||||
SetIcon(*ic);
|
||||
delete ic;
|
||||
#endif
|
||||
mIconized = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue