Remove unnecessary check from IPC sample.
No real changes, just remove a check for pointer passed to wxDELETE() bot being NULL as wxDELETE() already checks for this anyhow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8995db52f3
commit
6e91bf4d5b
@ -232,10 +232,8 @@ void MyFrame::EnableControls()
|
||||
|
||||
void MyFrame::OnClose(wxCloseEvent& event)
|
||||
{
|
||||
if (m_client)
|
||||
{
|
||||
wxDELETE(m_client);
|
||||
}
|
||||
wxDELETE(m_client);
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user