From 0efd176e700d5d72ea5e18c92d45c69aeacbc098 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 23 May 2013 11:52:08 +0100 Subject: e_container: Fix rect leak in e_container_shape_{,input}_rects_set 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 --- src/bin/e_container.c | 4 ++-- 1 file 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) { -- cgit v1.2.1