mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-04 20:03:20 +03:00
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:
parent
e2e40c5456
commit
f792e0b1ef
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user