Skip to content

Commit e3627b7

Browse files
committed
imagePtr is not null here
1 parent 2fbaadc commit e3627b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_imagingft.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ font_render(FontObject *self, PyObject *args) {
947947
return NULL;
948948
}
949949
im = (Imaging)PyCapsule_GetPointer(imagePtr, IMAGING_MAGIC);
950-
Py_XDECREF(imagePtr);
950+
Py_DECREF(imagePtr);
951951

952952
x_offset = round(x_offset - stroke_width);
953953
y_offset = round(y_offset - stroke_width);

0 commit comments

Comments
 (0)