From edbb0ccf3cf66a76b4afebf6f770ef3279598cc8 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Fri, 5 Feb 2016 13:03:29 +0900 Subject: [PATCH] tbm-surface: init user data list Change-Id: I4d08525964111f72385a5ba8cf1a8c053e570e46 Signed-off-by: Changyeon Lee --- src/tbm_surface_internal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index a444dce..48ef0ce 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -578,6 +578,8 @@ tbm_surface_h tbm_surface_internal_create_with_flags(int width, int height, int } + LIST_INITHEAD(&surf->user_data_list); + LIST_ADD(&surf->item_link, &mgr->surf_list); _tbm_surface_mutex_unlock(); @@ -658,6 +660,8 @@ tbm_surface_h tbm_surface_internal_create_with_bos(tbm_surface_info_s * info, tb _tbm_bo_set_surface(bos[i], surf); } + LIST_INITHEAD(&surf->user_data_list); + LIST_ADD(&surf->item_link, &mgr->surf_list); _tbm_surface_mutex_unlock(); -- 2.34.1