tbm-surface: init user data list 22/58922/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 5 Feb 2016 04:03:29 +0000 (13:03 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 5 Feb 2016 04:53:21 +0000 (13:53 +0900)
Change-Id: I4d08525964111f72385a5ba8cf1a8c053e570e46
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
src/tbm_surface_internal.c

index a444dceac5fa9530d348f7ed2d0c784276779411..48ef0ce7c3a249b37c7b3dd1e86c4c78b0a85598 100644 (file)
@@ -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();