1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Set buffer to nullptr after free

This commit is contained in:
zilmar 2020-04-28 10:50:52 +09:30 committed by Sergey Lipskiy
parent a3af1a88e2
commit 47013e2473
2 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ void RDRAMtoColorBuffer::destroy()
m_pTexture = nullptr;
}
free(m_pbuf);
m_pbuf = nullptr;
}
void RDRAMtoColorBuffer::addAddress(u32 _address, u32 _size)

View File

@ -72,6 +72,7 @@ void PaletteTexture::destroy()
textureCache().removeFrameBufferTexture(m_pTexture);
m_pTexture = nullptr;
free(m_pbuf);
m_pbuf = nullptr;
}
void PaletteTexture::update()