diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-07-07 20:03:21 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-07-18 18:15:39 +0200 |
commit | 40043d3bc2878fced8773a653660c428df013eb3 (patch) | |
tree | 4f3475537a9127132e56c50673b2163c4332c22a /client/x11/platform.cpp | |
parent | 659499478eb03d7f7cba6c4363f97b379b7adc3b (diff) | |
download | spice-40043d3bc2878fced8773a653660c428df013eb3.tar.gz spice-40043d3bc2878fced8773a653660c428df013eb3.tar.xz spice-40043d3bc2878fced8773a653660c428df013eb3.zip |
client: match delete[] with new[]
vinfo in x11/platform.cpp is allocated using new[] so it needs to
be freed with delete[]
Diffstat (limited to 'client/x11/platform.cpp')
-rw-r--r-- | client/x11/platform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |