Skip to content

Commit

Permalink
imagingft: Replace PyDict_GetItem with PyDict_GetItemRef
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 4, 2024
1 parent 675ee74 commit c5c212d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "pythoncapi_compat_min.h"
#include "libImaging/Imaging.h"

#include <ft2build.h>
Expand Down Expand Up @@ -1219,7 +1220,7 @@ font_getvarnames(FontObject *self) {
}

for (j = 0; j < num_namedstyles; j++) {
if (PyList_GetItem(list_names, j) != NULL) {
if (PyList_GetItemRef(list_names, j) != NULL) {
continue;
}

Expand Down

0 comments on commit c5c212d

Please sign in to comment.