input: check validation before destroy pepper_xkb 59/241259/2
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 12 Aug 2020 10:53:15 +0000 (19:53 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 19 Aug 2020 16:45:12 +0000 (01:45 +0900)
Change-Id: I7ad4ca89926d0b080fd36527bebe3d2e190ace12

src/lib/input.c

index 2dd4281b43db8b191434f5b23a74240227963bc8..866430dfaa95e1800722d545dea750b383f1c5a3 100644 (file)
@@ -119,7 +119,8 @@ pepper_efl_input_destroy(pepper_efl_input_t *input)
    EINA_LIST_FREE(input->handlers, hdl)
       ecore_event_handler_del(hdl);
 
-   pepper_xkb_destroy(input->xkb);
+   if (input->xkb)
+     pepper_xkb_destroy(input->xkb);
 
    pepper_seat_remove_input_device(input->seat, input->device);
    pepper_input_device_destroy(input->device);