From f6df14e5339ef104be37476fe06d8b9c94ac5f03 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(-) 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 -- cgit