diff --git a/pipi/codec/imlib.c b/pipi/codec/imlib.c index 786fbbb..a8cc67b 100644 --- a/pipi/codec/imlib.c +++ b/pipi/codec/imlib.c @@ -86,6 +86,7 @@ int pipi_save_imlib2(pipi_image_t *img, const char *name) img->codec_priv = (void *)priv; img->codec_format = PIPI_PIXELS_RGBA_C; + img->codec_free = pipi_free_imlib2; img->wrap = 0; img->u8 = 1; diff --git a/pipi/codec/opencv.c b/pipi/codec/opencv.c index 0b61aa6..96cfeb9 100644 --- a/pipi/codec/opencv.c +++ b/pipi/codec/opencv.c @@ -86,6 +86,7 @@ int pipi_save_opencv(pipi_image_t *img, const char *name) img->codec_priv = (void *)priv; img->codec_format = PIPI_PIXELS_BGR_C; + img->codec_free = pipi_free_opencv; img->wrap = 0; img->u8 = 1; diff --git a/pipi/codec/sdl.c b/pipi/codec/sdl.c index 15c9e88..89771e0 100644 --- a/pipi/codec/sdl.c +++ b/pipi/codec/sdl.c @@ -90,6 +90,7 @@ int pipi_save_sdl(pipi_image_t *img, const char *name) img->codec_priv = (void *)priv; img->codec_format = PIPI_PIXELS_RGBA_C; + img->codec_free = pipi_free_sdl; img->wrap = 0; img->u8 = 1;