Commit 528b4338 authored by Max Kellermann's avatar Max Kellermann

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

parent c780b8bb
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment