mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-28 16:29:56 +00:00
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:
parent
659499478e
commit
40043d3bc2
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user