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 a444dce..48ef0ce 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();