Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
f103a7c2
Commit
f103a7c2
authored
Oct 31, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed double frees in libvlc_audio_output_device_longname/id.
parent
a5429b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/control/audio.c
src/control/audio.c
+5
-3
No files found.
src/control/audio.c
View file @
f103a7c2
...
@@ -199,10 +199,11 @@ char * libvlc_audio_output_device_longname( libvlc_instance_t *p_instance,
...
@@ -199,10 +199,11 @@ char * libvlc_audio_output_device_longname( libvlc_instance_t *p_instance,
VLC_OBJECT
(
p_instance
->
p_libvlc_int
),
psz_config_name
,
val
,
val
,
NULL
);
VLC_OBJECT
(
p_instance
->
p_libvlc_int
),
psz_config_name
,
val
,
val
,
NULL
);
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
}
}
free
(
psz_config_name
);
if
(
i_device
>=
0
&&
i_device
<
p_module_config
->
i_list
)
if
(
i_device
>=
0
&&
i_device
<
p_module_config
->
i_list
)
{
{
free
(
psz_config_name
);
if
(
p_module_config
->
ppsz_list_text
[
i_device
]
)
if
(
p_module_config
->
ppsz_list_text
[
i_device
]
)
return
strdup
(
p_module_config
->
ppsz_list_text
[
i_device
]
);
return
strdup
(
p_module_config
->
ppsz_list_text
[
i_device
]
);
else
else
...
@@ -242,11 +243,12 @@ char * libvlc_audio_output_device_id( libvlc_instance_t *p_instance,
...
@@ -242,11 +243,12 @@ char * libvlc_audio_output_device_id( libvlc_instance_t *p_instance,
VLC_OBJECT
(
p_instance
->
p_libvlc_int
),
psz_config_name
,
val
,
val
,
NULL
);
VLC_OBJECT
(
p_instance
->
p_libvlc_int
),
psz_config_name
,
val
,
val
,
NULL
);
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
}
}
free
(
psz_config_name
);
if
(
i_device
>=
0
&&
i_device
<
p_module_config
->
i_list
)
if
(
i_device
>=
0
&&
i_device
<
p_module_config
->
i_list
)
{
free
(
psz_config_name
);
return
strdup
(
p_module_config
->
ppsz_list
[
i_device
]
);
return
strdup
(
p_module_config
->
ppsz_list
[
i_device
]
);
}
}
}
free
(
psz_config_name
);
free
(
psz_config_name
);
...
...
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