mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 735344 - Use a refcounted pointer to Zip so that the delete doesn't crash Fennec. Also remove some spurious logging. r=glandium
This commit is contained in:
parent
332e0e5c1c
commit
fe5be9ae3c
@ -723,7 +723,6 @@ static int loadSQLiteLibs(const char *apkName)
|
||||
static mozglueresult
|
||||
loadNSSLibs(const char *apkName)
|
||||
{
|
||||
__android_log_print(ANDROID_LOG_ERROR, "GeckoLibLoad", "loadNSSLibs");
|
||||
chdir(getenv("GRE_HOME"));
|
||||
|
||||
#ifdef MOZ_OLD_LINKER
|
||||
@ -733,7 +732,7 @@ loadNSSLibs(const char *apkName)
|
||||
}
|
||||
#endif
|
||||
|
||||
Zip *zip = new Zip(apkName);
|
||||
RefPtr<Zip> zip = new Zip(apkName);
|
||||
if (!lib_mapping) {
|
||||
lib_mapping = (struct mapping_info *)calloc(MAX_MAPPING_INFO, sizeof(*lib_mapping));
|
||||
}
|
||||
@ -772,14 +771,11 @@ loadNSSLibs(const char *apkName)
|
||||
#undef MOZLOAD
|
||||
#endif
|
||||
|
||||
delete zip;
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
free(file_ids);
|
||||
file_ids = NULL;
|
||||
#endif
|
||||
|
||||
__android_log_print(ANDROID_LOG_ERROR, "GeckoLibLoad", "loadNSSLibs 2");
|
||||
if (!nss_handle) {
|
||||
__android_log_print(ANDROID_LOG_ERROR, "GeckoLibLoad", "Couldn't get a handle to libnss3!");
|
||||
return FAILURE;
|
||||
@ -795,7 +791,6 @@ loadNSSLibs(const char *apkName)
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
__android_log_print(ANDROID_LOG_ERROR, "GeckoLibLoad", "loadNSSLibs 3");
|
||||
return setup_nss_functions(nss_handle, nspr_handle, plc_handle);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user