diff options
author | Carl Worth <cworth@cworth.org> | 2005-04-13 14:51:59 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-04-13 14:51:59 +0000 |
commit | 66688da5e4485a369750bd5600134a94c281d985 (patch) | |
tree | 08b70524ea103a2b7732601364932442ebf5e16b /src/cairo-image-surface.c | |
parent | 0fe6378bdb83b550ad10b007463d7fb12ef742a9 (diff) | |
download | cairo-66688da5e4485a369750bd5600134a94c281d985.tar.gz |
Set freed pointer to NULL.
Fix to actually set surface->finished when done. Closes bug #2950 as documented in test/surface-finish-twice.c.
Note that this bug is fixed.
Diffstat (limited to 'src/cairo-image-surface.c')
-rw-r--r-- | src/cairo-image-surface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 113e6d3a0..90a9432cc 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -240,8 +240,10 @@ _cairo_image_abstract_surface_finish (void *abstract_surface) { cairo_image_surface_t *surface = abstract_surface; - if (surface->pixman_image) + if (surface->pixman_image) { pixman_image_destroy (surface->pixman_image); + surface->pixman_image = NULL; + } if (surface->owns_data) { free (surface->data); |