diff --git a/stb_image_resize2.h b/stb_image_resize2.h index 3cabe2d..3f6e1ff 100644 --- a/stb_image_resize2.h +++ b/stb_image_resize2.h @@ -6731,7 +6731,7 @@ static void stbir__free_internal_mem( stbir__info *info ) STBIR__FREE_AND_CLEAR( info->horizontal.coefficients ); STBIR__FREE_AND_CLEAR( info->horizontal.contributors ); STBIR__FREE_AND_CLEAR( info->alloced_mem ); - STBIR_FREE( info ); + STBIR_FREE( info, info->user_data ); #endif }