mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-23 07:46:36 +08:00
fix(nxp/g2d): remove useless g2d_search_buf_map() when free buf (#8072)
This commit is contained in:
@@ -78,11 +78,7 @@ static void * _buf_malloc(size_t size_bytes, lv_color_format_t color_format)
|
||||
|
||||
static void _buf_free(void * buf)
|
||||
{
|
||||
// make sure items are in the hash table
|
||||
struct g2d_buf * g2d_buf = g2d_search_buf_map(buf);
|
||||
if(g2d_buf) {
|
||||
g2d_free_item(buf);
|
||||
}
|
||||
g2d_free_item(buf);
|
||||
}
|
||||
|
||||
static void _invalidate_cache(const lv_draw_buf_t * draw_buf, const lv_area_t * area)
|
||||
|
||||
Reference in New Issue
Block a user