Skip to content

Commit

Permalink
Merge pull request #6763 from Yay295/patch-1
Browse files Browse the repository at this point in the history
Fix WebP dealloc method definitions
  • Loading branch information
radarhere committed Nov 29, 2022
2 parents a257016 + 556b672 commit 0ec32a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/_webp.c
Expand Up @@ -178,12 +178,11 @@ _anim_encoder_new(PyObject *self, PyObject *args) {
return NULL;
}

PyObject *
void
_anim_encoder_dealloc(PyObject *self) {
WebPAnimEncoderObject *encp = (WebPAnimEncoderObject *)self;
WebPPictureFree(&(encp->frame));
WebPAnimEncoderDelete(encp->enc);
Py_RETURN_NONE;
}

PyObject *
Expand Down Expand Up @@ -400,12 +399,11 @@ _anim_decoder_new(PyObject *self, PyObject *args) {
return NULL;
}

PyObject *
void
_anim_decoder_dealloc(PyObject *self) {
WebPAnimDecoderObject *decp = (WebPAnimDecoderObject *)self;
WebPDataClear(&(decp->data));
WebPAnimDecoderDelete(decp->dec);
Py_RETURN_NONE;
}

PyObject *
Expand Down

0 comments on commit 0ec32a3

Please sign in to comment.