Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
118
Issues
118
List
Boards
Labels
Milestones
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
ea31864e
Commit
ea31864e
authored
Aug 07, 2012
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* #14444: sip: don't use call object after deleting it
parent
0b45b267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
daemon/src/sip/sipvoiplink.cpp
daemon/src/sip/sipvoiplink.cpp
+6
-3
No files found.
daemon/src/sip/sipvoiplink.cpp
View file @
ea31864e
...
...
@@ -1339,7 +1339,7 @@ SIPVoIPLink::SIPCallServerFailure(SIPCall *call)
void
SIPVoIPLink
::
SIPCallClosed
(
SIPCall
*
call
)
{
std
::
string
id
(
call
->
getCallId
());
const
std
::
string
id
(
call
->
getCallId
());
stopRtpIfCurrent
(
id
,
*
call
);
...
...
@@ -1500,8 +1500,11 @@ void sdp_media_update_cb(pjsip_inv_session *inv, pj_status_t status)
if
(
status
!=
PJ_SUCCESS
)
{
WARN
(
"Could not negotiate offer"
);
SIPVoIPLink
::
instance
()
->
hangup
(
call
->
getCallId
());
Manager
::
instance
().
callFailure
(
call
->
getCallId
());
const
std
::
string
callID
(
call
->
getCallId
());
SIPVoIPLink
::
instance
()
->
hangup
(
callID
);
// call is now a dangling pointer after calling hangup
call
=
0
;
Manager
::
instance
().
callFailure
(
callID
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment