Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
101b3425
Commit
101b3425
authored
Jul 02, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed vlc_icon_t leak in case of error.
parent
237c2d7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/demux/asf/libasf.c
modules/demux/asf/libasf.c
+5
-4
No files found.
modules/demux/asf/libasf.c
View file @
101b3425
...
@@ -717,6 +717,11 @@ static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj)
...
@@ -717,6 +717,11 @@ static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj)
char
*
ob
=
NULL
;
char
*
ob
=
NULL
;
size_t
i_ibl
,
i_obl
,
i_len
;
size_t
i_ibl
,
i_obl
,
i_len
;
if
(
(
i_peek
=
stream_Peek
(
s
,
&
p_peek
,
p_cd
->
i_object_size
)
)
<
34
)
{
return
VLC_EGENERIC
;
}
cd
=
vlc_iconv_open
(
"UTF-8"
,
"UTF-16LE"
);
cd
=
vlc_iconv_open
(
"UTF-8"
,
"UTF-16LE"
);
if
(
cd
==
(
vlc_iconv_t
)
-
1
)
{
if
(
cd
==
(
vlc_iconv_t
)
-
1
)
{
msg_Err
(
s
,
"vlc_iconv_open failed"
);
msg_Err
(
s
,
"vlc_iconv_open failed"
);
...
@@ -733,10 +738,6 @@ static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj)
...
@@ -733,10 +738,6 @@ static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj)
i_len = vlc_iconv(cd, &ib, &i_ibl, &ob, &i_obl); \
i_len = vlc_iconv(cd, &ib, &i_ibl, &ob, &i_obl); \
p_data += i_size;
p_data += i_size;
if
(
(
i_peek
=
stream_Peek
(
s
,
&
p_peek
,
p_cd
->
i_object_size
)
)
<
34
)
{
return
VLC_EGENERIC
;
}
p_data
=
p_peek
+
24
;
p_data
=
p_peek
+
24
;
i_title
=
GetWLE
(
p_data
);
p_data
+=
2
;
i_title
=
GetWLE
(
p_data
);
p_data
+=
2
;
...
...
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