diff options
author | Daniel Willmann <d.willmann@samsung.com> | 2013-05-23 11:52:08 +0100 |
---|---|---|
committer | Daniel Willmann <d.willmann@samsung.com> | 2013-05-23 11:58:36 +0100 |
commit | 0efd176e700d5d72ea5e18c92d45c69aeacbc098 (patch) | |
tree | c164f7710e0709c8fa444d4fff5afb1efc128047 | |
parent | 5ac0b9df10adfbdd7bde7bfc85e3a6580e1a6cbc (diff) | |
download | enlightenment-devs/asdfuser/leak-fix.tar.gz |
e_container: Fix rect leak in e_container_shape_{,input}_rects_setdevs/asdfuser/leak-fix
ecore_x_window_shape_rectangles_get() malloc()s memory for the return
value. Make sure we free it if it's not used.
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
-rw-r--r-- | src/bin/e_container.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/e_container.c b/src/bin/e_container.c index abcf1ceeae..1df619bc16 100644 --- a/src/bin/e_container.c +++ b/src/bin/e_container.c @@ -463,7 +463,7 @@ e_container_shape_rects_set(E_Container_Shape *es, Eina_Rectangle *rects, int nu ((int)rects[0].w == es->w) && ((int)rects[0].h == es->h)) { - /* do nothing */ + E_FREE(rects); } else if (rects) { @@ -486,7 +486,7 @@ e_container_shape_input_rects_set(E_Container_Shape *es, Eina_Rectangle *rects, ((int)rects[0].w == es->w) && ((int)rects[0].h == es->h)) { - /* do nothing */ + E_FREE(rects); } else if (rects) { |