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
1a327d33
Commit
1a327d33
authored
Mar 14, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Free every parameter
Fixes off-by-one error
parent
8ae52ea3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
agent/agent.c
agent/agent.c
+4
-2
No files found.
agent/agent.c
View file @
1a327d33
...
...
@@ -176,10 +176,12 @@ free_queued_signal (QueuedSignal *sig)
{
guint
i
;
g_value_unset
(
&
sig
->
params
[
0
]);
for
(
i
=
0
;
i
<
sig
->
query
.
n_params
;
i
++
)
{
g_free
(
g_value_get_pointer
(
&
sig
->
params
[
i
]));
g_value_unset
(
&
sig
->
params
[
i
]);
if
(
G_VALUE_HOLDS
(
&
sig
->
params
[
i
+
1
],
NICE_TYPE_AGENT_STREAM_IDS
))
g_free
(
g_value_get_pointer
(
&
sig
->
params
[
i
+
1
]));
g_value_unset
(
&
sig
->
params
[
i
+
1
]);
}
g_slice_free1
(
sizeof
(
GValue
)
*
(
sig
->
query
.
n_params
+
1
),
sig
->
params
);
...
...
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