fix shape rect related crash from b738b9fe5f
This commit is contained in:
parent
b738b9fe5f
commit
1b58e6cf8e
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue