AP_ONVIF: use NEW_NOTHROW for new(std::nothrow)

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:13 +10:00
parent 530cbf1eca
commit cead1ee264
1 changed files with 3 additions and 3 deletions

View File

@ -63,13 +63,13 @@ bool AP_ONVIF::start(const char *user, const char *pass, const char *hostname)
soap->connect_timeout = soap->recv_timeout = soap->send_timeout = 30; // 30 sec
if (proxy_device == nullptr) {
proxy_device = new DeviceBindingProxy(soap);
proxy_device = NEW_NOTHROW DeviceBindingProxy(soap);
}
if (proxy_media == nullptr) {
proxy_media = new MediaBindingProxy(soap);
proxy_media = NEW_NOTHROW MediaBindingProxy(soap);
}
if (proxy_ptz == nullptr) {
proxy_ptz = new PTZBindingProxy(soap);
proxy_ptz = NEW_NOTHROW PTZBindingProxy(soap);
}
if (proxy_device == nullptr ||