Skip to content

Commit

Permalink
Fix webp dealloc method definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Nov 27, 2022
1 parent 72372ad commit 556b672
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 556b672

Please sign in to comment.