diff options
author | Max Kellermann <max@duempel.org> | 2010-06-01 09:10:58 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-06-01 09:59:54 +0200 |
commit | caf93d9a2c2360a5b4a1d841fb83394d6bf4fc09 (patch) | |
tree | 0bc9ab2cd488cb508e183d05cffeff54fb3995ad /src/playlist_list.h | |
parent | 747e945d29e847403cec928ca4a3df7f27864cfc (diff) | |
download | mpd-caf93d9a2c2360a5b4a1d841fb83394d6bf4fc09.tar.gz mpd-caf93d9a2c2360a5b4a1d841fb83394d6bf4fc09.tar.xz mpd-caf93d9a2c2360a5b4a1d841fb83394d6bf4fc09.zip |
playlist_list: playlist_list_open_path() returns input_stream
Memory leak fix. The input_stream object passed to
playlist_list_open_stream_suffix() must be closed by the caller - this
however never happens in playlist_list_open_path(), because it does
not return it to the caller.
Diffstat (limited to 'src/playlist_list.h')
-rw-r--r-- | src/playlist_list.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/playlist_list.h b/src/playlist_list.h index f19fa6579..11a2356da 100644 --- a/src/playlist_list.h +++ b/src/playlist_list.h @@ -55,9 +55,11 @@ playlist_list_open_stream(struct input_stream *is, const char *uri); * Opens a playlist from a local file. * * @param path_fs the path of the playlist file + * @param is_r on success, an input_stream object is returned here, + * which must be closed after the playlist_provider object is freed * @return a playlist, or NULL on error */ struct playlist_provider * -playlist_list_open_path(const char *path_fs); +playlist_list_open_path(const char *path_fs, struct input_stream **is_r); #endif |