Bug 1255526 - fix import of typed URLs on versions of windows that do not store timestamps, r=MattN a=lizzard

MozReview-Commit-ID: KSXtQAS7meZ
This commit is contained in:
Gijs Kruitbosch 2016-04-01 20:43:25 +01:00
parent 81e4d161e9
commit 661e713de3

View File

@ -710,8 +710,12 @@ function getTypedURLs(registryKeyPath) {
} catch (ex) {
Cu.reportError("Error reading typed URL history: " + ex);
} finally {
typedURLKey.close();
typedURLTimeKey.close();
if (typedURLKey) {
typedURLKey.close();
}
if (typedURLTimeKey) {
typedURLTimeKey.close();
}
cTypes.finalize();
}
return typedURLs;