Fix memory leak

* Return after setting the error for advanced features without
  libraqm. Not returning here leads to an alloc that's never freed.
This commit is contained in:
Eric Soroos 2025-05-13 22:48:36 +02:00
parent e2e40c5456
commit f792e0b1ef

View File

@ -425,6 +425,7 @@ text_layout_fallback(
"setting text direction, language or font features is not supported "
"without libraqm"
);
return 0;
}
if (PyUnicode_Check(string)) {