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
77a11337
Commit
77a11337
authored
Oct 15, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistRegistry: use std::string for temporary allocation
parent
25c208d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
PlaylistRegistry.cxx
src/PlaylistRegistry.cxx
+2
-4
No files found.
src/PlaylistRegistry.cxx
View file @
77a11337
...
...
@@ -243,10 +243,8 @@ playlist_list_open_stream_mime(struct input_stream *is, const char *full_mime)
return
nullptr
;
/* probe only the portion before the semicolon*/
char
*
mime
=
g_strndup
(
full_mime
,
semicolon
-
full_mime
);
auto
playlist
=
playlist_list_open_stream_mime2
(
is
,
mime
);
g_free
(
mime
);
return
playlist
;
const
std
::
string
mime
(
full_mime
,
semicolon
);
return
playlist_list_open_stream_mime2
(
is
,
mime
.
c_str
());
}
static
SongEnumerator
*
...
...
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