wxServer subclass uses safenew

This commit is contained in:
Paul Licameli 2016-03-31 13:28:40 -04:00
parent fd8fa69c62
commit 99cb50d6db

View File

@ -634,13 +634,14 @@ public:
{
};
wxConnectionBase *OnAcceptConnection(const wxString & topic)
wxConnectionBase *OnAcceptConnection(const wxString & topic) override
{
if (topic != IPC_TOPIC) {
return NULL;
}
return new IPCConn();
// Trust wxWidgets framework to delete it
return safenew IPCConn();
};
};