mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX: missed to delete texture
Jira: STUDIO-4574 Change-Id: I8884380158d3d20ce76a07cbcaa8531ab039357b (cherry picked from commit 44f93d083f542d6151f727e98933131cf0fa4463)
This commit is contained in:
parent
80a4a5f2c6
commit
76a9c62ad0
1 changed files with 3 additions and 1 deletions
|
@ -5148,8 +5148,10 @@ void PartPlateList::BedTextureInfo::TexturePart::update_buffer()
|
||||||
|
|
||||||
void PartPlateList::BedTextureInfo::TexturePart::reset()
|
void PartPlateList::BedTextureInfo::TexturePart::reset()
|
||||||
{
|
{
|
||||||
if (texture)
|
if (texture) {
|
||||||
texture->reset();
|
texture->reset();
|
||||||
|
delete texture;
|
||||||
|
}
|
||||||
if (buffer)
|
if (buffer)
|
||||||
delete buffer;
|
delete buffer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue