Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1984f60b
Commit
1984f60b
authored
Sep 05, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix VLM double free
Pointed-out-by: Sébastien Escudier (cherry picked from commit
b4329926
)
parent
c8764017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/control/vlm.c
src/control/vlm.c
+6
-10
No files found.
src/control/vlm.c
View file @
1984f60b
...
@@ -199,12 +199,10 @@ void libvlc_vlm_add_broadcast( libvlc_instance_t *p_instance, char *psz_name,
...
@@ -199,12 +199,10 @@ void libvlc_vlm_add_broadcast( libvlc_instance_t *p_instance, char *psz_name,
for
(
n
=
0
;
n
<
i_options
;
n
++
)
for
(
n
=
0
;
n
<
i_options
;
n
++
)
TAB_APPEND
(
m
.
i_option
,
m
.
ppsz_option
,
strdup
(
ppsz_options
[
n
])
);
TAB_APPEND
(
m
.
i_option
,
m
.
ppsz_option
,
strdup
(
ppsz_options
[
n
])
);
if
(
vlm_Control
(
p_vlm
,
VLM_ADD_MEDIA
,
&
m
,
NULL
)
)
n
=
vlm_Control
(
p_vlm
,
VLM_ADD_MEDIA
,
&
m
,
NULL
);
{
vlm_media_Clean
(
&
m
);
libvlc_exception_raise
(
p_exception
,
"Media %s creation failed"
,
psz_name
);
}
vlm_media_Clean
(
&
m
);
vlm_media_Clean
(
&
m
);
if
(
n
)
libvlc_exception_raise
(
p_exception
,
"Media %s creation failed"
,
psz_name
);
#else
#else
libvlc_exception_raise
(
p_exception
,
"VLM has been disabled in this libvlc."
);
libvlc_exception_raise
(
p_exception
,
"VLM has been disabled in this libvlc."
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -233,12 +231,10 @@ void libvlc_vlm_add_vod( libvlc_instance_t *p_instance, char *psz_name,
...
@@ -233,12 +231,10 @@ void libvlc_vlm_add_vod( libvlc_instance_t *p_instance, char *psz_name,
for
(
n
=
0
;
n
<
i_options
;
n
++
)
for
(
n
=
0
;
n
<
i_options
;
n
++
)
TAB_APPEND
(
m
.
i_option
,
m
.
ppsz_option
,
strdup
(
ppsz_options
[
n
])
);
TAB_APPEND
(
m
.
i_option
,
m
.
ppsz_option
,
strdup
(
ppsz_options
[
n
])
);
if
(
vlm_Control
(
p_vlm
,
VLM_ADD_MEDIA
,
&
m
,
NULL
)
)
n
=
vlm_Control
(
p_vlm
,
VLM_ADD_MEDIA
,
&
m
,
NULL
);
{
vlm_media_Clean
(
&
m
);
libvlc_exception_raise
(
p_exception
,
"Media %s creation failed"
,
psz_name
);
}
vlm_media_Clean
(
&
m
);
vlm_media_Clean
(
&
m
);
if
(
n
)
libvlc_exception_raise
(
p_exception
,
"Media %s creation failed"
,
psz_name
);
#else
#else
libvlc_exception_raise
(
p_exception
,
"VLM has been disabled in this libvlc."
);
libvlc_exception_raise
(
p_exception
,
"VLM has been disabled in this libvlc."
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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