mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
wxServer subclass uses safenew
This commit is contained in:
@@ -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();
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user