input/CdioParanoia: use cdio_cddap_free_messages() on recent library versions
This commit is contained in:
parent
c780b8bba9
commit
528b4338f4
|
@ -304,7 +304,11 @@ CdioParanoiaInputStream::Read(void *ptr, size_t length)
|
||||||
if (s_err) {
|
if (s_err) {
|
||||||
FormatError(cdio_domain,
|
FormatError(cdio_domain,
|
||||||
"paranoia_read: %s", s_err);
|
"paranoia_read: %s", s_err);
|
||||||
|
#if LIBCDIO_VERSION_NUM >= 90
|
||||||
|
cdio_cddap_free_messages(s_err);
|
||||||
|
#else
|
||||||
free(s_err);
|
free(s_err);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (!rbuf)
|
if (!rbuf)
|
||||||
throw std::runtime_error("paranoia read error");
|
throw std::runtime_error("paranoia read error");
|
||||||
|
|
Loading…
Reference in New Issue