Skip to content
Snippets Groups Projects
Commit 81279958 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -609,7 +609,9 @@ SIPVoIPLink::~SIPVoIPLink()
pjsip_tpmgr_set_state_cb(pjsip_endpt_get_tpmgr(endpt_), nullptr);
Manager::instance().unregisterEventHandler((uintptr_t)this);
try {
handleEvents();
} catch (...) {}
sipTransportBroker.reset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment