mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-19 05:20:44 +01:00
Fixed massive pixmap leak
This commit is contained in:
parent
7e46e8e6ca
commit
d3db983ab2
3 changed files with 3 additions and 8 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue