e_blur_video_capture: Fix use after free of e_hwc_presentation_callback 81/316281/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 19 Aug 2024 02:42:23 +0000 (11:42 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 19 Aug 2024 03:36:32 +0000 (12:36 +0900)
Change-Id: Ie4e94fb4ea72f64ffc2b43a68b262226b273010b

src/bin/server/e_blur_video_capture.c

index da857a6bef5df9edca5221a44e49230369a25628..d29138cc69b5c2b3509e6fb064b998a24e8fb4b3 100644 (file)
@@ -723,7 +723,10 @@ _e_blur_video_capture_client_evas_cb_hide(void *data, Evas *evas EINA_UNUSED, Ev
    client->presentation_visible = EINA_FALSE;
 
    if (client->presentation_callback)
-     e_hwc_presentation_callback_del(client->presentation_callback);
+     {
+        e_hwc_presentation_callback_del(client->presentation_callback);
+        client->presentation_callback = NULL;
+     }
 
    EINA_LIST_FOREACH(client->capture_objs, l, object)
      _e_blur_video_capture_object_hide(object);