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

summaryrefslogtreecommitdiff
path: root/source/core/StarImage.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-02-20 09:49:50 +1100
committerGitHub <noreply@github.com>2024-02-20 09:49:50 +1100
commit00cf86f240bc5c3581ed55897c37756c3fd113c2 (patch)
treee51fcce110306d93bf93870f13a5ff7d6b575427 /source/core/StarImage.cpp
parent1c89042016c739815b2d70bcbef4673eef6b63e0 (diff)
parentaa987a217779e71f97ee4c9cce531aec1c861bf8 (diff)
Merge pull request #20 from kblaschke/small-fixes
A few small fixes
Diffstat (limited to 'source/core/StarImage.cpp')
-rw-r--r--source/core/StarImage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarImage.cpp b/source/core/StarImage.cpp
index f41e034..363e156 100644
--- a/source/core/StarImage.cpp
+++ b/source/core/StarImage.cpp
@@ -184,6 +184,8 @@ tuple<Vec2U, PixelFormat> Image::readPngMetadata(IODevicePtr device) {
channels += 1;
}
+ png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
+
Vec2U imageSize{img_width, img_height};
PixelFormat pixelFormat = channels == 3 ? PixelFormat::RGB24 : PixelFormat::RGBA32;