Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarImage.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-02-20 10:00:35 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-02-20 10:00:35 +1100
commit442347d82ee8ab5fb0575dafe4918e74541458a3 (patch)
treea91bbbb1887d889ce046f14f59ab9f60a3315c4d /source/core/StarImage.cpp
parenta7cfe73544b6f96356c9f55afa6311613f69a846 (diff)
fix minor Image memleak
Diffstat (limited to 'source/core/StarImage.cpp')
-rw-r--r--source/core/StarImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarImage.cpp b/source/core/StarImage.cpp
index 363e156..0147369 100644
--- a/source/core/StarImage.cpp
+++ b/source/core/StarImage.cpp
@@ -246,7 +246,7 @@ void Image::reset(unsigned width, unsigned height, Maybe<PixelFormat> pf) {
if (!pf)
pf = m_pixelFormat;
- if (m_data && m_width == width && m_height == height && m_pixelFormat == *pf)
+ if (m_width == width && m_height == height && m_pixelFormat == *pf)
return;
size_t imageSize = width * height * Star::bytesPerPixel(*pf);