client: match delete[] with new[]

vinfo in x11/platform.cpp is allocated using new[] so it needs to
be freed with delete[]
This commit is contained in:
Christophe Fergeau 2011-07-07 20:03:21 +02:00
parent 659499478e
commit 40043d3bc2

View File

@ -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