From 2b7b89a2a755c20e91a726943f270316d3e23696 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 13 Oct 2008 21:05:40 +0000 Subject: [PATCH] Changed delete to delete[]. --- src/raster/imgbit.cpp | 4 ++-- src/raster/imggray.cpp | 4 ++-- src/raster/imgindex.cpp | 4 ++-- src/raster/imgrgb.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/raster/imgbit.cpp b/src/raster/imgbit.cpp index 896f36267..fb0c0647e 100644 --- a/src/raster/imgbit.cpp +++ b/src/raster/imgbit.cpp @@ -34,7 +34,7 @@ static void bitmap_regenerate_lines(Image *image) int y; if (LINES(image)) - delete LINES(image); + delete[] LINES(image); image->line = new ase_uint8*[image->h]; @@ -51,7 +51,7 @@ static void bitmap_init(Image *image) bitmap_regenerate_lines(image); } catch (...) { - delete BYTES(image); + delete[] BYTES(image); throw; } } diff --git a/src/raster/imggray.cpp b/src/raster/imggray.cpp index 5f3b4c58d..2df0a711c 100644 --- a/src/raster/imggray.cpp +++ b/src/raster/imggray.cpp @@ -28,7 +28,7 @@ static void grayscale_regenerate_lines(Image *image) int y; if (LINES(image)) - delete LINES(image); + delete[] LINES(image); image->line = (ase_uint8**)new ase_uint16*[image->h]; @@ -45,7 +45,7 @@ static void grayscale_init(Image *image) grayscale_regenerate_lines(image); } catch (...) { - delete BYTES(image); + delete[] BYTES(image); throw; } } diff --git a/src/raster/imgindex.cpp b/src/raster/imgindex.cpp index dcfe8554b..59603c41d 100644 --- a/src/raster/imgindex.cpp +++ b/src/raster/imgindex.cpp @@ -28,7 +28,7 @@ static void indexed_regenerate_lines(Image *image) int y; if (LINES(image)) - delete LINES(image); + delete[] LINES(image); image->line = new ase_uint8*[image->h]; @@ -45,7 +45,7 @@ static void indexed_init(Image *image) indexed_regenerate_lines(image); } catch (...) { - delete BYTES(image); + delete[] BYTES(image); throw; } } diff --git a/src/raster/imgrgb.cpp b/src/raster/imgrgb.cpp index f66db3e81..072ceead7 100644 --- a/src/raster/imgrgb.cpp +++ b/src/raster/imgrgb.cpp @@ -28,7 +28,7 @@ static void rgb_regenerate_lines(Image *image) int y; if (LINES(image)) - delete LINES(image); + delete[] LINES(image); image->line = (ase_uint8**)new ase_uint32*[image->h]; @@ -45,7 +45,7 @@ static void rgb_init(Image *image) rgb_regenerate_lines(image); } catch (...) { - delete BYTES(image); + delete[] BYTES(image); throw; } }