wxServer subclass uses safenew
This commit is contained in:
parent
fd8fa69c62
commit
99cb50d6db
|
@ -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();
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user