diff --git a/stb_image.h b/stb_image.h index d4fd2fc..12bc8c7 100644 --- a/stb_image.h +++ b/stb_image.h @@ -6547,7 +6547,7 @@ static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_c if (!stbi__pic_load_core(s,x,y,comp, result)) { STBI_FREE(result); - result=0; + return 0; } *px = x; *py = y;