input/CdioParanoia: use cdio_cddap_free_messages() on recent library versions
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user