check pointer before freeing it

This commit is contained in:
oy 2019-01-17 23:58:07 +01:00
parent 6deaaf0159
commit 6dfb31c772

View file

@ -48,7 +48,10 @@ CInput::CInput()
CInput::~CInput()
{
SDL_free(m_pClipboardText);
if(m_pClipboardText)
{
SDL_free(m_pClipboardText);
}
}
void CInput::Init()