mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +02:00
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) {
|
if (topic != IPC_TOPIC) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new IPCConn();
|
// Trust wxWidgets framework to delete it
|
||||||
|
return safenew IPCConn();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user