summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-07-07 20:03:21 +0200
committerAlon Levy <alevy@redhat.com>2011-07-21 15:09:28 +0300
commitf6df14e5339ef104be37476fe06d8b9c94ac5f03 (patch)
tree754f719cb26e1d3608c750f2fa10163b2d22238d
parent4c44be35b05670051d240ff2877940cef3d9b18c (diff)
client: match delete[] with new[]
vinfo in x11/platform.cpp is allocated using new[] so it needs to be freed with delete[]
-rw-r--r--client/x11/platform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index dbd2b6ab..1256ce75 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -2878,7 +2878,7 @@ static void cleanup(void)
for (i = 0; i < ScreenCount(x_display); ++i) {
XFree(vinfo[i]);
}
- delete vinfo;
+ delete[] vinfo;
vinfo = NULL;
}
#ifdef USE_OGL