Fixed massive pixmap leak

This commit is contained in:
Carl Worth 2003-09-16 10:28:46 +00:00
parent 7e46e8e6ca
commit d3db983ab2
3 changed files with 3 additions and 8 deletions

View file

@ -1,5 +1,8 @@
2003-09-16 Carl Worth <cworth@isi.edu>
* src/cairo_surface.c (cairo_surface_create_similar_solid): Fixed
massive pixmap leak, (at least one pixmap for every set_rgb_color)
* configure.in (CAIRO_VERSION): Bumped to 0.1.3 for new functions:
cairo_reference and cairo_surface_reference.

View file

@ -276,11 +276,7 @@ cairo_surface_create_similar_solid (cairo_surface_t *other,
NULL,
format,
DefaultColormap (dpy, scr));
/* XXX: huh? This should be fine since we already created a picture
from the pixmap, right?? (Somehow, it seems to be causing some
breakage).
XFreePixmap (surface->dpy, pix);
*/
} else {
char *data;
int stride;

View file

@ -276,11 +276,7 @@ cairo_surface_create_similar_solid (cairo_surface_t *other,
NULL,
format,
DefaultColormap (dpy, scr));
/* XXX: huh? This should be fine since we already created a picture
from the pixmap, right?? (Somehow, it seems to be causing some
breakage).
XFreePixmap (surface->dpy, pix);
*/
} else {
char *data;
int stride;