зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
29840c5670
Коммит
22d5ab05f8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче