summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <devilhorns@comcast.net>2013-03-24 20:28:00 +0000
committerChris Michael <devilhorns@comcast.net>2013-03-24 20:28:00 +0000
commitf250e678d9974d64924328b1909a567805db118e (patch)
tree3441fe742e4522050689c0cb8475c7b1c6aff752
parent23fa6fabd1e4b7971edef2a954d0db3add92288d (diff)
downloadenlightenment-devs/devilhorns/wayland.tar.gz
Fix potential memleak.devs/devilhorns/wayland
If we fail to add global for input, then release the seat that we called init on previously. Signed-off-by: Chris Michael <devilhorns@comcast.net>
-rw-r--r--src/bin/e_comp_wl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index d9c362b332..f86fa9ab88 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -429,6 +429,7 @@ _e_comp_wl_input_init(void)
return EINA_TRUE;
err:
+ wl_seat_release(&_e_wl_comp->input->wl.seat);
E_FREE(_e_wl_comp->input);
return EINA_FALSE;
}