VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Main/Application.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main/Application.cpp b/src/Main/Application.cpp
index ca9db0b1..4b013cfc 100644
--- a/src/Main/Application.cpp
+++ b/src/Main/Application.cpp
@@ -88,7 +88,7 @@ namespace VeraCrypt
FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir)
{
- static const wxString *configDirC = NULL;
+ static wxScopedPtr<const wxString> configDirC;
static bool configDirExists = false;
if (!configDirExists)
@@ -108,7 +108,7 @@ namespace VeraCrypt
}
EnsureEndsWithPathSeparator(*configDir);
- configDirC = configDir;
+ configDirC.reset(configDir);
}
if (createConfigDir)