aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorMarcel Schneider <marcel@coopmasters.de>2019-03-26 17:58:02 +0100
committerPierre Ossman <ossman@cendio.se>2019-04-03 10:14:46 +0200
commitfd3bfa6d9d1166b3fdb585c794abb4634d70409c (patch)
tree44368df6f79b2b8023eeaabdcac1ae45c637443c /vncviewer
parent6a85e7aaa0022f7da262088dea16c277c96f126e (diff)
downloadtigervnc-fd3bfa6d9d1166b3fdb585c794abb4634d70409c.tar.gz
tigervnc-fd3bfa6d9d1166b3fdb585c794abb4634d70409c.zip
replace free with delete[]
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);
}