Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
801e6f9a
Commit
801e6f9a
authored
Sep 23, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conncheck: Don't use CandidateRefresh after freeing it
parent
34502d67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
agent/conncheck.c
agent/conncheck.c
+9
-3
No files found.
agent/conncheck.c
View file @
801e6f9a
...
@@ -787,6 +787,7 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
...
@@ -787,6 +787,7 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
static
gboolean
priv_turn_allocate_refresh_retransmissions_tick
(
gpointer
pointer
)
static
gboolean
priv_turn_allocate_refresh_retransmissions_tick
(
gpointer
pointer
)
{
{
CandidateRefresh
*
cand
=
(
CandidateRefresh
*
)
pointer
;
CandidateRefresh
*
cand
=
(
CandidateRefresh
*
)
pointer
;
NiceAgent
*
agent
=
NULL
;
agent_lock
();
agent_lock
();
...
@@ -806,6 +807,8 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick (gpointer pointe
...
@@ -806,6 +807,8 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick (gpointer pointe
g_source_unref
(
cand
->
tick_source
);
g_source_unref
(
cand
->
tick_source
);
cand
->
tick_source
=
NULL
;
cand
->
tick_source
=
NULL
;
agent
=
g_object_ref
(
cand
->
agent
);
switch
(
stun_timer_refresh
(
&
cand
->
timer
))
{
switch
(
stun_timer_refresh
(
&
cand
->
timer
))
{
case
STUN_USAGE_TIMER_RETURN_TIMEOUT
:
case
STUN_USAGE_TIMER_RETURN_TIMEOUT
:
{
{
...
@@ -823,12 +826,12 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick (gpointer pointe
...
@@ -823,12 +826,12 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick (gpointer pointe
agent_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
agent_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
stun_message_length
(
&
cand
->
stun_message
),
(
gchar
*
)
cand
->
stun_buffer
);
stun_message_length
(
&
cand
->
stun_message
),
(
gchar
*
)
cand
->
stun_buffer
);
agent_timeout_add_with_context
(
cand
->
agent
,
&
cand
->
tick_source
,
agent_timeout_add_with_context
(
agent
,
&
cand
->
tick_source
,
"Candidate TURN refresh"
,
stun_timer_remainder
(
&
cand
->
timer
),
"Candidate TURN refresh"
,
stun_timer_remainder
(
&
cand
->
timer
),
priv_turn_allocate_refresh_retransmissions_tick
,
cand
);
priv_turn_allocate_refresh_retransmissions_tick
,
cand
);
break
;
break
;
case
STUN_USAGE_TIMER_RETURN_SUCCESS
:
case
STUN_USAGE_TIMER_RETURN_SUCCESS
:
agent_timeout_add_with_context
(
cand
->
agent
,
&
cand
->
tick_source
,
agent_timeout_add_with_context
(
agent
,
&
cand
->
tick_source
,
"Candidate TURN refresh"
,
stun_timer_remainder
(
&
cand
->
timer
),
"Candidate TURN refresh"
,
stun_timer_remainder
(
&
cand
->
timer
),
priv_turn_allocate_refresh_retransmissions_tick
,
cand
);
priv_turn_allocate_refresh_retransmissions_tick
,
cand
);
break
;
break
;
...
@@ -838,7 +841,10 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick (gpointer pointe
...
@@ -838,7 +841,10 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick (gpointer pointe
}
}
agent_unlock_and_emit
(
cand
->
agent
);
agent_unlock_and_emit
(
agent
);
g_object_unref
(
agent
);
return
FALSE
;
return
FALSE
;
}
}
...
...
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