From 40043d3bc2878fced8773a653660c428df013eb3 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 7 Jul 2011 20:03:21 +0200 Subject: client: match delete[] with new[] vinfo in x11/platform.cpp is allocated using new[] so it needs to be freed with delete[] --- client/x11/platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/x11/platform.cpp') diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index 7c310580..910d61e8 100644 --- a/client/x11/platform.cpp +++ b/client/x11/platform.cpp @@ -2881,7 +2881,7 @@ static void cleanup(void) for (i = 0; i < ScreenCount(x_display); ++i) { XFree(vinfo[i]); } - delete vinfo; + delete[] vinfo; vinfo = NULL; } #ifdef USE_OPENGL -- cgit