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:
Vadim Zeitlin
2010-10-07 20:43:20 +00:00
parent 8995db52f3
commit 6e91bf4d5b

View File

@@ -232,10 +232,8 @@ void MyFrame::EnableControls()
void MyFrame::OnClose(wxCloseEvent& event) void MyFrame::OnClose(wxCloseEvent& event)
{ {
if (m_client)
{
wxDELETE(m_client); wxDELETE(m_client);
}
event.Skip(); event.Skip();
} }