diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/image.cpp | 5 |
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; } |