fix(nxp/g2d): remove useless g2d_search_buf_map() when free buf (#8072)

This commit is contained in:
Astrozen
2025-05-09 14:03:28 +08:00
committed by GitHub
parent fb3cd66197
commit d6d67dfb51
+1 -5
View File
@@ -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)