calling __NSInitialize/__NSTerminate to enable GC leak detector. r=smfr

This commit is contained in:
beard%netscape.com 1999-10-03 20:53:11 +00:00
Родитель 26ba00f59b
Коммит 4d1ac7a47a
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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();
} }