зеркало из https://github.com/mozilla/pjs.git
calling __NSInitialize/__NSTerminate to enable GC leak detector. r=smfr
This commit is contained in:
Родитель
26ba00f59b
Коммит
4d1ac7a47a
|
@ -24,9 +24,10 @@ short nsMacResources::mRefNum = kResFileNotOpened;
|
||||||
short nsMacResources::mSaveResFile = 0;
|
short nsMacResources::mSaveResFile = 0;
|
||||||
|
|
||||||
|
|
||||||
pascal OSErr __initialize(const CFragInitBlock *theInitBlock);
|
pascal OSErr __NSInitialize(const CFragInitBlock *theInitBlock);
|
||||||
pascal OSErr __initializeResources(const CFragInitBlock *theInitBlock);
|
pascal OSErr __initializeResources(const CFragInitBlock *theInitBlock);
|
||||||
pascal void __terminate(void);
|
|
||||||
|
pascal void __NSTerminate(void);
|
||||||
pascal void __terminateResources(void);
|
pascal void __terminateResources(void);
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ pascal void __terminateResources(void);
|
||||||
//----------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------
|
||||||
pascal OSErr __initializeResources(const CFragInitBlock *theInitBlock)
|
pascal OSErr __initializeResources(const CFragInitBlock *theInitBlock)
|
||||||
{
|
{
|
||||||
OSErr err = __initialize(theInitBlock);
|
OSErr err = __NSInitialize(theInitBlock);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
@ -56,7 +57,7 @@ pascal OSErr __initializeResources(const CFragInitBlock *theInitBlock)
|
||||||
pascal void __terminateResources(void)
|
pascal void __terminateResources(void)
|
||||||
{
|
{
|
||||||
::CloseResFile(nsMacResources::GetLocalResourceFile());
|
::CloseResFile(nsMacResources::GetLocalResourceFile());
|
||||||
__terminate();
|
__NSTerminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче