summaryrefslogtreecommitdiff
path: root/Source/WebKit/win/WebIconDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/win/WebIconDatabase.cpp')
-rw-r--r--Source/WebKit/win/WebIconDatabase.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/WebKit/win/WebIconDatabase.cpp b/Source/WebKit/win/WebIconDatabase.cpp
index 329817aa2..cddc40d81 100644
--- a/Source/WebKit/win/WebIconDatabase.cpp
+++ b/Source/WebKit/win/WebIconDatabase.cpp
@@ -84,12 +84,11 @@ void WebIconDatabase::startUpIconDatabase()
iconDatabase().setClient(this);
- BSTR prefDatabasePath = 0;
+ BString prefDatabasePath;
if (FAILED(standardPrefs->iconDatabaseLocation(&prefDatabasePath)))
LOG_ERROR("Unable to get icon database location preference");
String databasePath(prefDatabasePath, SysStringLen(prefDatabasePath));
- SysFreeString(prefDatabasePath);
if (databasePath.isEmpty()) {
databasePath = localUserSpecificStorageDirectory();