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
1c15d4ad
Commit
1c15d4ad
authored
May 20, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a (really) small memleak (even if i_count is 0, some memory is allocated
for the strucure).
parent
2eabe22e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/control/media_player.c
src/control/media_player.c
+3
-0
No files found.
src/control/media_player.c
View file @
1c15d4ad
...
@@ -1241,7 +1241,10 @@ libvlc_track_description_t *
...
@@ -1241,7 +1241,10 @@ libvlc_track_description_t *
var_Change
(
p_input
,
psz_variable
,
VLC_VAR_GETLIST
,
&
val_list
,
&
text_list
);
var_Change
(
p_input
,
psz_variable
,
VLC_VAR_GETLIST
,
&
val_list
,
&
text_list
);
if
(
val_list
.
p_list
->
i_count
<=
0
)
/* no tracks */
if
(
val_list
.
p_list
->
i_count
<=
0
)
/* no tracks */
{
var_Change
(
p_input
,
psz_variable
,
VLC_VAR_FREELIST
,
&
val_list
,
&
text_list
);
return
NULL
;
return
NULL
;
}
libvlc_track_description_t
*
p_track_description
,
*
p_actual
,
*
p_previous
;
libvlc_track_description_t
*
p_track_description
,
*
p_actual
,
*
p_previous
;
p_track_description
=
(
libvlc_track_description_t
*
)
p_track_description
=
(
libvlc_track_description_t
*
)
...
...
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