mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
check pointer before freeing it
This commit is contained in:
parent
6deaaf0159
commit
6dfb31c772
|
@ -48,7 +48,10 @@ CInput::CInput()
|
|||
|
||||
CInput::~CInput()
|
||||
{
|
||||
SDL_free(m_pClipboardText);
|
||||
if(m_pClipboardText)
|
||||
{
|
||||
SDL_free(m_pClipboardText);
|
||||
}
|
||||
}
|
||||
|
||||
void CInput::Init()
|
||||
|
|
Loading…
Reference in a new issue