https://bugs.kde.org/show_bug.cgi?id=522748
--- Comment #3 from ElXreno <[email protected]> --- Git commit 6186aa52511b5cbfd92bf0664fa4bbcc0a1cb8a9 by Mikhail Hrechyn. Committed on 22/07/2026 at 15:38. Pushed by cgilles into branch 'master'. Fix sized deallocation mismatch in GraphicsDImgItem private container GraphicsDImgItemPrivate has no virtual destructor, but subclasses create the derived DImgPreviewItemPrivate container and hand it down to the protected GraphicsDImgItem constructor, and ~GraphicsDImgItem() deletes it through the GraphicsDImgItemPrivate pointer. The derived destructor is therefore never run, leaking the members of DImgPreviewItemPrivate, and the compiler emits C++14 sized deallocation with the size of the base class while the allocation has the size of the subclass. Allocators enforcing the size argument, like hardened_malloc which secureblue preloads into all Flatpak applications, abort with "fatal allocator error: sized deallocation mismatch (small)" when the preview item is destroyed, e.g. on application shutdown while the map view is open. Same pattern as the AbstractMarkerTiler::Tile fix in the previous commit: the destructor must be virtual on the base class. FIXED-IN: 9.2.0 M +13 -1 core/libs/widgets/graphicsview/dimgitems_p.h https://invent.kde.org/graphics/digikam/-/commit/6186aa52511b5cbfd92bf0664fa4bbcc0a1cb8a9 -- You are receiving this mail because: You are watching all bug changes.
