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
77dd16ba
Commit
77dd16ba
authored
Jul 11, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pulse: fix a memory leak.
parent
71ed5a7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+5
-3
No files found.
modules/audio_output/pulse.c
View file @
77dd16ba
...
...
@@ -118,7 +118,7 @@ static int Open ( vlc_object_t *p_this )
const
struct
pa_buffer_attr
*
buffer_attr
;
struct
pa_buffer_attr
a
;
struct
pa_channel_map
map
;
char
*
p_client_name
=
NULL
;
char
*
p_client_name
;
if
(
!
vlc_xlib_init
(
p_this
)
)
return
VLC_EGENERIC
;
...
...
@@ -213,7 +213,10 @@ static int Open ( vlc_object_t *p_this )
goto
fail
;
}
if
(
!
(
p_sys
->
context
=
pa_context_new
(
pa_threaded_mainloop_get_api
(
p_sys
->
mainloop
),
p_client_name
)))
{
p_sys
->
context
=
pa_context_new
(
pa_threaded_mainloop_get_api
(
p_sys
->
mainloop
),
p_client_name
);
free
(
p_client_name
);
if
(
!
p_sys
->
context
)
{
msg_Err
(
p_aout
,
"Failed to allocate context"
);
goto
fail
;
}
...
...
@@ -306,7 +309,6 @@ unlock_and_fail:
if
(
p_sys
->
mainloop
)
pa_threaded_mainloop_unlock
(
p_sys
->
mainloop
);
fail:
free
(
p_client_name
);
msg_Dbg
(
p_aout
,
"Pulse initialization failed"
);
uninit
(
p_aout
);
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