fix that mask leak

SVN revision: 3511
This commit is contained in:
Carsten Haitzler 2000-09-17 20:16:22 +00:00
parent ff43dc6621
commit fc7f0b3908
1 changed files with 1 additions and 1 deletions

View File

@ -477,6 +477,7 @@ void __evas_x11_rectangle_draw(Display *disp, Imlib_Image dstim, Wi
XSetTile(disp, dr->gc, None);
}
XFillRectangle(disp, up->p, dr->gc, x - up->x, y - up->y, w, h);
if (s_mask) XFreePixmap(disp, s_mask);
}
}
}
@ -484,7 +485,6 @@ void __evas_x11_rectangle_draw(Display *disp, Imlib_Image dstim, Wi
if (im)
{
if (pmap) imlib_free_pixmap_and_mask(pmap);
if (s_mask) XFreePixmap(disp, s_mask);
imlib_context_set_image(im);
imlib_free_image();
}