summaryrefslogtreecommitdiffstats
path: root/client/glz_decoder_window.cpp
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-02-09 13:18:54 +0100
committerAlexander Larsson <alexl@redhat.com>2010-02-10 11:25:28 +0100
commitb82f9ed2b3723f468cda2a8f1ffa7918756a290f (patch)
tree4cdf8ce5ff64de164747a1fd5f8d9319e89fd5ae /client/glz_decoder_window.cpp
parent39be5a8b13ae793aacf641ef605a4cef8eabf373 (diff)
downloadspice-b82f9ed2b3723f468cda2a8f1ffa7918756a290f.tar.gz
spice-b82f9ed2b3723f468cda2a8f1ffa7918756a290f.tar.xz
spice-b82f9ed2b3723f468cda2a8f1ffa7918756a290f.zip
Fix delete vs delete[] mismatches
This fixes a bunch of valgrind warnings.
Diffstat (limited to 'client/glz_decoder_window.cpp')
-rw-r--r--client/glz_decoder_window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/glz_decoder_window.cpp b/client/glz_decoder_window.cpp
index 9cd64abd..aca24854 100644
--- a/client/glz_decoder_window.cpp
+++ b/client/glz_decoder_window.cpp
@@ -50,7 +50,7 @@ GlzDecoderWindow::GlzDecoderWindow(int pixels_capacity, GlzDecoderDebug &debug_c
GlzDecoderWindow::~GlzDecoderWindow()
{
clear();
- delete _images;
+ delete[] _images;
}
DecodedImageWinId GlzDecoderWindow::pre_decode(uint64_t image_id, uint64_t relative_head_id)
@@ -246,7 +246,7 @@ void GlzDecoderWindow::realloc(int size)
for (int i = 0; i < _n_images; i++) {
new_images[i] = _images[(i + _head_idx) % _images_capacity];
}
- delete _images;
+ delete[] _images;
_images = new_images;
_head_idx = 0;