compositor: Assert ds_surface exists 07/324007/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 12 May 2025 05:00:29 +0000 (14:00 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 12 May 2025 07:49:57 +0000 (16:49 +0900)
The e_surface_destroy is intended to be called after ds_surface has been
destroyed. To make this clear, this patch adds an assertion to verify
that ds_surface does not exist when e_surface_destroy called.

Change-Id: I425322531472c281c8da283c89a7c89556861040

src/bin/server/e_compositor.c

index 3e6719ac48b83ba9aa97fa6166ba2efc1afc182f..55091970fd5c7a51398cedc4b8ec8c1a0080171d 100644 (file)
@@ -1015,6 +1015,8 @@ e_surface_destroy(E_Surface *surface)
 
    ELOGF("COMPOSITOR", "Destroy E_Surface %p", surface->ec, surface);
 
+   assert(surface->ds_surface == NULL);
+
    wl_signal_emit(&surface->events.destroy, surface);
 
    g_mutex_lock(&surface->base.surface_mutex);