Skip to content

Commit 0ec32a3

Browse files
authored
Merge pull request #6763 from Yay295/patch-1
Fix WebP dealloc method definitions
2 parents a257016 + 556b672 commit 0ec32a3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/_webp.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,11 @@ _anim_encoder_new(PyObject *self, PyObject *args) {
178178
return NULL;
179179
}
180180

181-
PyObject *
181+
void
182182
_anim_encoder_dealloc(PyObject *self) {
183183
WebPAnimEncoderObject *encp = (WebPAnimEncoderObject *)self;
184184
WebPPictureFree(&(encp->frame));
185185
WebPAnimEncoderDelete(encp->enc);
186-
Py_RETURN_NONE;
187186
}
188187

189188
PyObject *
@@ -400,12 +399,11 @@ _anim_decoder_new(PyObject *self, PyObject *args) {
400399
return NULL;
401400
}
402401

403-
PyObject *
402+
void
404403
_anim_decoder_dealloc(PyObject *self) {
405404
WebPAnimDecoderObject *decp = (WebPAnimDecoderObject *)self;
406405
WebPDataClear(&(decp->data));
407406
WebPAnimDecoderDelete(decp->dec);
408-
Py_RETURN_NONE;
409407
}
410408

411409
PyObject *

0 commit comments

Comments
 (0)