Fix crash when calling initEmbedding with an appFileLocProvider. Don't delete the locProvider proxy after having called NS_InitEmbedding. Not part of default build. a=mkaply

Original committer: pedemont%us.ibm.com
Original revision: 1.7
Original date: 2005/07/13 22:15:08
This commit is contained in:
pedemont%us.ibm.com 2006-09-27 15:16:32 +00:00
Родитель 29840c5670
Коммит 22d5ab05f8
1 изменённых файлов: 17 добавлений и 0 удалений

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

@ -234,3 +234,20 @@ nsAppFileLocProviderProxy::GetFiles(const char* aProp,
return rv;
}
////////////////////////////////////////////////////////////////////////////////
nsresult
NS_NewAppFileLocProviderProxy(jobject aJavaLocProvider,
nsIDirectoryServiceProvider** aResult)
{
nsAppFileLocProviderProxy* provider =
new nsAppFileLocProviderProxy(aJavaLocProvider);
if (provider == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(provider);
*aResult = provider;
return NS_OK;
}