wl text input - handle out of mem and free half done struct

stgruct we alloced is not freed if a child element setup fails...
fixes a technical leak. coverity found it.

fix CID 1403931
enlightenment-0.23
Carsten Haitzler 4 years ago
parent b03c0739db
commit 3c7d93059b
  1. 1
      src/modules/wl_text_input/e_mod_main.c

@ -793,6 +793,7 @@ _e_text_input_manager_cb_text_input_create(struct wl_client *client, struct wl_r
1, id);
if (!text_input->resource)
{
free(text_input);
wl_client_post_no_memory(client);
ERR("could not create wl_resource for text input");
return;

Loading…
Cancel
Save