mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 19:08:54 +00:00
V1.0.5
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user