This commit is contained in:
刘可亮
2024-06-04 19:00:30 +08:00
parent 990c72f5be
commit 0a13af6a1d
1668 changed files with 342810 additions and 37726 deletions

View File

@@ -115,7 +115,10 @@ static gd_GIF * gif_open(gd_GIF * gif_base)
gif = lv_mem_alloc(sizeof(gd_GIF) + 3 * width * height);
#endif
if (!gif) goto fail;
if (!gif) {
LV_LOG_WARN("gif memory alloc failed\n");
goto fail;
}
memcpy(gif, gif_base, sizeof(gd_GIF));
gif->width = width;
gif->height = height;