aboutsummaryrefslogtreecommitdiff
path: root/src/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.cpp')
-rw-r--r--src/image.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/image.cpp b/src/image.cpp
new file mode 100644
index 0000000..35941e5
--- /dev/null
+++ b/src/image.cpp
@@ -0,0 +1,10 @@
+#include "image.h"
+
+Image::~Image()
+{
+ if(width != 0 && height != 0)
+ {
+ delete[] imageData;
+ }
+}
+