mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 07:53:54 +00:00
Added in a way to shutdown the image manager
This commit is contained in:
parent
a43ad60044
commit
cdc696924a
@ -89,4 +89,7 @@ public:
|
||||
extern "C" NS_GFX_(nsresult)
|
||||
NS_NewImageManager(nsIImageManager **aInstancePtrResult);
|
||||
|
||||
extern "C" NS_GFX_(void)
|
||||
NS_FreeImageManager();
|
||||
|
||||
#endif
|
||||
|
@ -61,7 +61,6 @@ ImageManagerImpl::~ImageManagerImpl()
|
||||
{
|
||||
IL_Shutdown();
|
||||
NS_RELEASE(mSS);
|
||||
// gImageManager = nsnull;
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF(ImageManagerImpl)
|
||||
@ -150,3 +149,8 @@ NS_NewImageManager(nsIImageManager **aInstancePtrResult)
|
||||
return gImageManager->QueryInterface(kIImageManagerIID,
|
||||
(void **)aInstancePtrResult);
|
||||
}
|
||||
extern "C" NS_GFX_(void)
|
||||
NS_FreeImageManager()
|
||||
{
|
||||
NS_IF_RELEASE(gImageManager);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user