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
1db9db8d
Commit
1db9db8d
authored
Dec 04, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_output/alsa.c: fixed minor memory leak.
parent
0d26b166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+7
-1
No files found.
modules/audio_output/alsa.c
View file @
1db9db8d
...
...
@@ -315,7 +315,6 @@ static int Open( vlc_object_t *p_this )
}
p_sys
->
b_playing
=
VLC_FALSE
;
p_sys
->
start_date
=
0
;
p_sys
->
p_status
=
(
snd_pcm_status_t
*
)
malloc
(
snd_pcm_status_sizeof
());
vlc_cond_init
(
p_aout
,
&
p_sys
->
wait
);
vlc_mutex_init
(
p_aout
,
&
p_sys
->
lock
);
...
...
@@ -327,6 +326,8 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
p_sys
->
p_status
=
(
snd_pcm_status_t
*
)
malloc
(
snd_pcm_status_sizeof
());
/* Choose the IEC device for S/PDIF output:
if the device is overriden by the user then it will be the one
otherwise we compute the default device based on the output format. */
...
...
@@ -375,6 +376,7 @@ static int Open( vlc_object_t *p_this )
if
(
var_Get
(
p_aout
,
"audio-device"
,
&
val
)
<
0
)
{
free
(
p_sys
->
p_status
);
free
(
p_sys
);
free
(
psz_device
);
return
VLC_EGENERIC
;
...
...
@@ -411,6 +413,7 @@ static int Open( vlc_object_t *p_this )
{
/* This should not happen ! */
msg_Err
(
p_aout
,
"internal: can't find audio-device (%i)"
,
val
.
i_int
);
free
(
p_sys
->
p_status
);
free
(
p_sys
);
free
(
psz_device
);
return
VLC_EGENERIC
;
...
...
@@ -428,6 +431,7 @@ static int Open( vlc_object_t *p_this )
{
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
psz_iec_device
,
snd_strerror
(
i_snd_rc
)
);
free
(
p_sys
->
p_status
);
free
(
p_sys
);
free
(
psz_device
);
return
VLC_EGENERIC
;
...
...
@@ -470,6 +474,7 @@ static int Open( vlc_object_t *p_this )
{
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
psz_device
,
snd_strerror
(
i_snd_rc
)
);
free
(
p_sys
->
p_status
);
free
(
p_sys
);
free
(
psz_device
);
return
VLC_EGENERIC
;
...
...
@@ -673,6 +678,7 @@ error:
#ifdef ALSA_DEBUG
snd_output_close
(
p_sys
->
p_snd_stderr
);
#endif
free
(
p_sys
->
p_status
);
free
(
p_sys
);
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