aboutsummaryrefslogtreecommitdiff
path: root/src/image.cpp
diff options
context:
space:
mode:
authorBossCode45 <boss@tehbox.org>2025-06-27 14:54:46 +1200
committerBossCode45 <boss@tehbox.org>2025-07-24 12:48:21 +1200
commitf953c730af2b90db99f709258c5d5e50fdcaadf7 (patch)
treeadbc79f0d48a74a42fd0eb22d85f03696a99dc42 /src/image.cpp
parent06a2928d96b3d9aeaffb19013ba71a5cb6d96381 (diff)
downloadtehimage-f953c730af2b90db99f709258c5d5e50fdcaadf7.tar.gz
tehimage-f953c730af2b90db99f709258c5d5e50fdcaadf7.zip
Initial commit
Bringing a lot of stuff over from my maze-reader project in an attempt to split the image reading code off into a library.
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;
+ }
+}
+