Commit 81279958 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2

sip: fix exception during class destructor

~SIPVoIPLink() calls handleEvents() but this method may throw.
Throwing during destructor is forbidden and result to and std::terminate().
Fix by try {} catch the call.

Detected by Coverity scan.

Change-Id: I57d742c7f6b6d872b4b2118c1f10c0986c082397
parent f025c52b
......@@ -609,7 +609,9 @@ SIPVoIPLink::~SIPVoIPLink()
pjsip_tpmgr_set_state_cb(pjsip_endpt_get_tpmgr(endpt_), nullptr);
Manager::instance().unregisterEventHandler((uintptr_t)this);
handleEvents();
try {
handleEvents();
} catch (...) {}
sipTransportBroker.reset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment