Fix crash because of mixing debug and release CRT. (#1361)

Memory allocated in r2-side has to be released with `r_free`
This commit is contained in:
a1ext 2019-03-23 08:15:03 +03:00 committed by Itay Cohen
parent c84546e828
commit 1422013d99

View File

@ -2649,7 +2649,7 @@ QString CutterCore::ansiEscapeToHtml(const QString &text)
return QString();
}
QString r = QString::fromUtf8(html, len);
free(html);
r_free(html);
return r;
}