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:
parent
fbbab2ce1b
commit
7508f10f64
@ -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()
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user