1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

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); ModuleManager::Dispatch(AppInitialized);
mWindowRectAlreadySaved = FALSE; mWindowRectAlreadySaved = FALSE;
mTimer = new wxTimer(this, kAudacityAppTimerID);
mTimer->Start(200);
} }
void AudacityApp::InitCommandHandler() void AudacityApp::InitCommandHandler()

View File

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

View File

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

View File

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

View File

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

View File

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