From acecc8744c17dc266f9369ab99df2ced084abc9a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Dec 2022 18:32:32 +0100 Subject: src/anim-atlas: fix dangling reference Found with: asan --- src/anim-atlas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp index 2423c114..0726048e 100644 --- a/src/anim-atlas.cpp +++ b/src/anim-atlas.cpp @@ -41,7 +41,7 @@ anim_atlas::anim_atlas(StringView name, const ImageView2D& image, anim_def info) { fm_assert(!_info.groups.empty()); - const Size<3>& size = image.pixels().size(); + const Size<3> size = image.pixels().size(); fm_assert(size[0]*size[1] == _info.pixel_size.product()); fm_assert(size[2] >= 3 && size[2] <= 4); -- cgit v1.2.3