input/CdioParanoia: use cdio_cddap_free_messages() on recent library versions

This commit is contained in:
Max Kellermann 2019-01-21 14:16:51 +01:00
parent c780b8bba9
commit 528b4338f4
1 changed files with 4 additions and 0 deletions

View File

@ -304,7 +304,11 @@ CdioParanoiaInputStream::Read(void *ptr, size_t length)
if (s_err) {
FormatError(cdio_domain,
"paranoia_read: %s", s_err);
#if LIBCDIO_VERSION_NUM >= 90
cdio_cddap_free_messages(s_err);
#else
free(s_err);
#endif
}
if (!rbuf)
throw std::runtime_error("paranoia read error");