summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/image.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/image.cpp b/src/util/image.cpp
index 4cbecc8c2b..ffa65bf0ba 100644
--- a/src/util/image.cpp
+++ b/src/util/image.cpp
@@ -172,8 +172,5 @@ Image::Image(const std::string &data, bool flip) {
}
Image::~Image() {
- if (img) {
- ::operator delete(img);
- img = nullptr;
- }
+ ::operator delete(img),img = nullptr;
}