From 442347d82ee8ab5fb0575dafe4918e74541458a3 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 20 Feb 2024 10:00:35 +1100 Subject: [PATCH] fix minor Image memleak --- source/core/StarImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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);