Returns TRUE when the refcount reaches 0 and the image is freed.
return image;
}
-void
+/* returns TRUE when the image is freed */
+pixman_bool_t
pixman_image_unref (pixman_image_t *image)
{
image_common_t *common = (image_common_t *)image;
free (image->bits.free_me);
free (image);
+
+ return TRUE;
}
+
+ return FALSE;
}
/* Constructors */
/* Destructor */
pixman_image_t *pixman_image_ref (pixman_image_t *image);
-void pixman_image_unref (pixman_image_t *image);
+pixman_bool_t pixman_image_unref (pixman_image_t *image);
/* Set properties */