e_comp_wl_video: fix dereference null return value 11/311411/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 20 May 2024 12:15:58 +0000 (21:15 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 21 May 2024 00:34:06 +0000 (09:34 +0900)
Change-Id: I8ff33972373ca0b73567471c230cbaea03759e76
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/server/e_comp_wl_video.c

index dfd6b13..5409003 100644 (file)
@@ -349,6 +349,7 @@ _e_comp_wl_video_handle_viewport_get(struct wl_client *client,
    E_Client *ec;
 
    ec = e_client_from_surface_resource(surface);
+   EINA_SAFETY_ON_NULL_RETURN(ec);
 
    if (!ec->comp_data) return;