From 74f8ba13c92f349ff65f86fe9ebeb675caa2cbdd Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 25 Sep 2023 09:07:18 +0800 Subject: [PATCH] FIX: missed to delete texture Jira: STUDIO-4574 Change-Id: I8884380158d3d20ce76a07cbcaa8531ab039357b --- src/slic3r/GUI/PartPlate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index 00393c2f9..7a3be9df9 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -5257,8 +5257,10 @@ void PartPlateList::BedTextureInfo::TexturePart::update_buffer() void PartPlateList::BedTextureInfo::TexturePart::reset() { - if (texture) + if (texture) { texture->reset(); + delete texture; + } if (buffer) delete buffer; }