summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-01-26 20:48:58 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2013-02-16 18:47:09 -0500
commita36fc8514db72329b66cc4d86f1b113eab42e3f2 (patch)
tree5efaf82675549a98b846493b2049813e11d95f55
parent8b67e459ea171da61eb0e228ee0d410d917c1445 (diff)
more
-rw-r--r--trace/pixman-trace.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/trace/pixman-trace.c b/trace/pixman-trace.c
index 15c85c8c..f9d26f31 100644
--- a/trace/pixman-trace.c
+++ b/trace/pixman-trace.c
@@ -32,6 +32,7 @@ typedef enum
CREATE_RADIAL_GRADIENT,
CREATE_CONICAL_GRADIENT,
CREATE_BITS,
+ DESTROY_IMAGE,
SET_CLIP_REGION,
SET_CLIP_REGION32,
SET_HAS_CLIENT_CLIP,
@@ -110,7 +111,7 @@ get_image_id (pixman_image_t *image)
{
n_allocated = next_pot (n_allocated);
image_id_map = realloc (
- image_id_map, n_allocated * sizeof (image_id_map));
+ image_id_map, n_allocated * sizeof (image_id_t));
}
image_id_map[n_used].id = ids++;
@@ -407,7 +408,12 @@ pixman_image_unref (pixman_image_t *image)
pixman_bool_t done = DLCALL (pixman_image_unref, image);
if (done)
+ {
+ emit_op (DESTROY_IMAGE);
+ emit_id (image);
+
remove_image (image);
+ }
return done;
}