mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-19 21:51:06 +00:00
FIX: missed to delete texture
Jira: STUDIO-4574 Change-Id: I8884380158d3d20ce76a07cbcaa8531ab039357b (cherry picked from commit 44f93d083f542d6151f727e98933131cf0fa4463)
This commit is contained in:
1 parent
80a4a5f2c6
commit
76a9c62ad0
1 file changed
+3
-1
@@ -5148,8 +5148,10 @@ void PartPlateList::BedTextureInfo::TexturePart::update_buffer()
|
||||
|
||||
void PartPlateList::BedTextureInfo::TexturePart::reset()
|
||||
{
|
||||
if (texture)
|
||||
if (texture) {
|
||||
texture->reset();
|
||||
delete texture;
|
||||
}
|
||||
if (buffer)
|
||||
delete buffer;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user