Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b432f148
Commit
b432f148
authored
Aug 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one of so many memory handling warning
parent
a8a188fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/input/item.c
src/input/item.c
+6
-5
No files found.
src/input/item.c
View file @
b432f148
...
...
@@ -147,7 +147,7 @@ int input_ItemAddInfo( input_item_t *p_i,
if
(
!
(
p_cat
=
(
info_category_t
*
)
malloc
(
sizeof
(
info_category_t
)
))
)
{
vlc_mutex_unlock
(
&
p_i
->
lock
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
p_cat
->
psz_name
=
strdup
(
psz_cat
);
p_cat
->
i_infos
=
0
;
...
...
@@ -170,23 +170,24 @@ int input_ItemAddInfo( input_item_t *p_i,
if
(
(
p_info
=
(
info_t
*
)
malloc
(
sizeof
(
info_t
)
)
)
==
NULL
)
{
vlc_mutex_unlock
(
&
p_i
->
lock
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
INSERT_ELEM
(
p_cat
->
pp_infos
,
p_cat
->
i_infos
,
p_cat
->
i_infos
,
p_info
);
p_info
->
psz_name
=
strdup
(
psz_name
);
}
else
{
if
(
p_info
->
psz_value
)
free
(
p_info
->
psz_value
);
free
(
p_info
->
psz_value
);
}
va_start
(
args
,
psz_format
);
vasprintf
(
&
p_info
->
psz_value
,
psz_format
,
args
);
if
(
vasprintf
(
&
p_info
->
psz_value
,
psz_format
,
args
)
)
p_info
->
psz_value
=
NULL
;
va_end
(
args
);
vlc_mutex_unlock
(
&
p_i
->
lock
);
return
VLC_SUCCESS
;
return
p_info
->
psz_value
?
VLC_SUCCESS
:
VLC_ENOMEM
;
}
input_item_t
*
input_ItemGetById
(
playlist_t
*
p_playlist
,
int
i_id
)
...
...
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