mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix memory leak in ImGui panels
Properly release texture buffers.
This commit is contained in:
parent
615de70b1f
commit
8898b44dee
@ -64,6 +64,10 @@ CBrowser::CBrowser(void)
|
||||
//-----------------------------------------------------------------------------
|
||||
CBrowser::~CBrowser(void)
|
||||
{
|
||||
if (m_idLockedIcon)
|
||||
{
|
||||
m_idLockedIcon->Release();
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -81,6 +81,13 @@ CConsole::CConsole(void)
|
||||
//-----------------------------------------------------------------------------
|
||||
CConsole::~CConsole(void)
|
||||
{
|
||||
for (MODULERESOURCE& flagIcon : m_vFlagIcons)
|
||||
{
|
||||
if (flagIcon.m_idIcon)
|
||||
{
|
||||
flagIcon.m_idIcon->Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user