fix shape rect related crash from b738b9fe5f

This commit is contained in:
Mike Blumenkrantz 2013-05-23 13:29:34 +01:00
parent b738b9fe5f
commit 1b58e6cf8e
2 changed files with 3 additions and 3 deletions

View File

@ -7720,6 +7720,7 @@ _e_border_eval0(E_Border *bd)
if (!bd->bordername)
bd->client.border.changed = 1;
}
free(rects);
}
else
{
@ -7732,7 +7733,6 @@ _e_border_eval0(E_Border *bd)
ecore_x_window_shape_input_rectangles_set(bd->win, rects, num);
e_container_shape_input_rects_set(bd->shape, (Eina_Rectangle *)rects, num);
}
free(rects);
}
else
{

View File

@ -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 */
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 */
free(rects);
}
else if (rects)
{