summaryrefslogtreecommitdiff
path: root/lib/Image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Image.cc')
-rw-r--r--lib/Image.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Image.cc b/lib/Image.cc
index 2e33da7..a0ece1b 100644
--- a/lib/Image.cc
+++ b/lib/Image.cc
@@ -9,9 +9,7 @@ Image::Image(unsigned int ax, unsigned int ay) : x(ax), y(ay), img((Color *) mal
}
Image::~Image() {
- char * t = (char *) img;
- free(t);
- img = 0;
+ free((char *&) img);
}
bool Image::CanWrite() const {