This commit is contained in:
mjudge%netscape.com 1998-11-30 08:36:47 +00:00
parent 1e13676256
commit 3993e759e2
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ getEditFactory(nsIFactory **aFactory)
{
nsEditFactory *factory = new nsEditFactory(getter_AddRefs(g_pNSIFactory));
*aFactory = g_pNSIFactory;
NS_IF_RELEASE(*aFactory);
NS_IF_ADDREF(*aFactory);
if (factory)
result = NS_OK;
}

View File

@ -39,7 +39,7 @@ getEditFactory(nsIFactory **aFactory)
{
nsEditFactory *factory = new nsEditFactory(getter_AddRefs(g_pNSIFactory));
*aFactory = g_pNSIFactory;
NS_IF_RELEASE(*aFactory);
NS_IF_ADDREF(*aFactory);
if (factory)
result = NS_OK;
}