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
cadd186f
Commit
cadd186f
authored
8 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/jack: use AtScopeExit()
parent
dd9ab16d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
JackOutputPlugin.cxx
src/output/plugins/JackOutputPlugin.cxx
+3
-11
No files found.
src/output/plugins/JackOutputPlugin.cxx
View file @
cadd186f
...
...
@@ -22,6 +22,7 @@
#include "../OutputAPI.hxx"
#include "../Wrapper.hxx"
#include "config/ConfigError.hxx"
#include "util/ScopeExit.hxx"
#include "util/ConstBuffer.hxx"
#include "util/IterableSplitString.hxx"
#include "util/Error.hxx"
...
...
@@ -557,6 +558,8 @@ JackOutput::Start(Error &error)
jports
=
nullptr
;
}
AtScopeExit
(
jports
)
{
free
(
jports
);
};
assert
(
num_dports
>
0
);
const
char
*
duplicate_port
=
nullptr
;
...
...
@@ -584,10 +587,6 @@ JackOutput::Start(Error &error)
if
(
ret
!=
0
)
{
error
.
Format
(
jack_output_domain
,
"Not a valid JACK port: %s"
,
dports
[
i
]);
if
(
jports
!=
nullptr
)
free
(
jports
);
Stop
();
return
false
;
}
...
...
@@ -604,18 +603,11 @@ JackOutput::Start(Error &error)
error
.
Format
(
jack_output_domain
,
"Not a valid JACK port: %s"
,
duplicate_port
);
if
(
jports
!=
nullptr
)
free
(
jports
);
Stop
();
return
false
;
}
}
if
(
jports
!=
nullptr
)
free
(
jports
);
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
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