Merge pull request #9274 from xtemp09/mem-fix2

Fix the typo in #9267
This commit is contained in:
Chris Hennes
2023-04-15 11:39:53 -05:00
committed by GitHub

View File

@@ -142,7 +142,7 @@ PyObject* FT2FC(const Py_UNICODE *PyUString,
int bytesNeeded = fontfile.tellg();
fontfile.clear();
fontfile.seekg (0, fontfile.beg);
auto buffer = std::unique_ptr <char> (new char[bytesNeeded]);
std::unique_ptr <char[]> buffer (new char[bytesNeeded]);
fontfile.read(buffer.get(), bytesNeeded);
if (!fontfile) {
//get indignant