summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/parameters.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx
index 1458e4b4..05abd704 100644
--- a/vncviewer/parameters.cxx
+++ b/vncviewer/parameters.cxx
@@ -503,7 +503,7 @@ void saveViewerParameters(const char *filename, const char *servername) {
}
snprintf(filepath, sizeof(filepath), "%sdefault.tigervnc", homeDir);
- free(homeDir);
+ delete[] homeDir;
} else {
snprintf(filepath, sizeof(filepath), "%s", filename);
}
@@ -560,7 +560,7 @@ char* loadViewerParameters(const char *filename) {
"can't obtain home directory path."));
snprintf(filepath, sizeof(filepath), "%sdefault.tigervnc", homeDir);
- free(homeDir);
+ delete[] homeDir;
} else {
snprintf(filepath, sizeof(filepath), "%s", filename);
}