surface: Add missing ds_addon_set_init/finish 97/301997/1 accepted/tizen_8.0_unified accepted/tizen_unified_riscv tizen_7.0_mc tizen_8.0 accepted/tizen/8.0/unified/20231229.032700 accepted/tizen/unified/20231205.171426 accepted/tizen/unified/riscv/20231211.234123
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 28 Nov 2023 11:17:19 +0000 (20:17 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 29 Nov 2023 07:41:36 +0000 (16:41 +0900)
Change-Id: Iedf70576bdd6d0ff7ea709c05e74f2bbacd845f2

src/compositor/surface.c

index 1f8b2c4..8b8a135 100644 (file)
@@ -243,6 +243,8 @@ create_surface(struct wl_client *client, uint32_t version, uint32_t id)
     pixman_region32_init(&surface->opaque_region);
     pixman_region32_init(&surface->input_region);
 
+    ds_addon_set_init(&surface->addons);
+
     ds_inf("New ds_surface %p (res %p)", surface, surface->resource);
 
     return surface;
@@ -712,6 +714,8 @@ surface_handle_resource_destroy(struct wl_resource *resource)
     pixman_region32_fini(&surface->opaque_region);
     pixman_region32_fini(&surface->input_region);
 
+    ds_addon_set_finish(&surface->addons);
+
     free(surface);
 }