FIX: missed to delete texture

Jira: STUDIO-4574
Change-Id: I8884380158d3d20ce76a07cbcaa8531ab039357b
This commit is contained in:
zhou.xu 2023-09-25 09:07:18 +08:00 committed by Lane.Wei
parent 35b15a1aa1
commit 74f8ba13c9
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}