From f7dee88901b1a28787b1ca6114020172bb2b80d9 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 16 Jul 2022 11:47:52 -0300 Subject: [PATCH] Fix uninitialized rgbmap (found w/MSVC debug, GitHub actions failed) Regression from 2785a9fef71ff8aa45aee086b9d30f8a8805f67f --- src/app/cmd/set_pixel_format.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/cmd/set_pixel_format.cpp b/src/app/cmd/set_pixel_format.cpp index 43e1ad54e..d3ca2f29b 100644 --- a/src/app/cmd/set_pixel_format.cpp +++ b/src/app/cmd/set_pixel_format.cpp @@ -219,6 +219,9 @@ void SetPixelFormat::convertImage(doc::Sprite* sprite, else newMaskIndex = rgbmap->maskIndex(); } + else { + rgbmap = nullptr; + } ImageRef newImage( render::convert_pixel_format (oldImage.get(), nullptr, m_newFormat,