Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
766905ba
Commit
766905ba
authored
Mar 21, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/alsa: merge alsa_data_free() into destructor
parent
a29c64b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
alsa_output_plugin.c
src/output/alsa_output_plugin.c
+3
-8
No files found.
src/output/alsa_output_plugin.c
View file @
766905ba
...
@@ -112,13 +112,6 @@ alsa_data_new(void)
...
@@ -112,13 +112,6 @@ alsa_data_new(void)
}
}
static
void
static
void
alsa_data_free
(
struct
alsa_data
*
ad
)
{
g_free
(
ad
->
device
);
g_free
(
ad
);
}
static
void
alsa_configure
(
struct
alsa_data
*
ad
,
const
struct
config_param
*
param
)
alsa_configure
(
struct
alsa_data
*
ad
,
const
struct
config_param
*
param
)
{
{
ad
->
device
=
config_dup_block_string
(
param
,
"device"
,
NULL
);
ad
->
device
=
config_dup_block_string
(
param
,
"device"
,
NULL
);
...
@@ -166,7 +159,9 @@ alsa_finish(struct audio_output *ao)
...
@@ -166,7 +159,9 @@ alsa_finish(struct audio_output *ao)
struct
alsa_data
*
ad
=
(
struct
alsa_data
*
)
ao
;
struct
alsa_data
*
ad
=
(
struct
alsa_data
*
)
ao
;
ao_base_finish
(
&
ad
->
base
);
ao_base_finish
(
&
ad
->
base
);
alsa_data_free
(
ad
);
g_free
(
ad
->
device
);
g_free
(
ad
);
/* free libasound's config cache */
/* free libasound's config cache */
snd_config_update_free_global
();
snd_config_update_free_global
();
...
...
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