diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-07 13:26:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-07 19:30:33 +0000 |
commit | 2554d1759835a174b89107808d81d044c3e2e098 (patch) | |
tree | 0b18975ffbadbaa47bdcccb68f6bacabbc99306f /test/pdf-mime-data.c | |
parent | ff0bd64e9436026f11e85eafcd74e9a0131c8b9f (diff) |
[surface] Pass a separate closure for the mime-type destroy notifier.
A limitation of the current API was that the destroy notifier was called
on the mime-data block. This prevents the user from passing in a pointer
to a managed block, for example a mime-data block belonging to a
ref-counted object. We can overcome this by allowing the user to specify
the closure to be used with the destroy notifier.
Diffstat (limited to 'test/pdf-mime-data.c')
-rw-r--r-- | test/pdf-mime-data.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/pdf-mime-data.c b/test/pdf-mime-data.c index c949335e3..233374ddb 100644 --- a/test/pdf-mime-data.c +++ b/test/pdf-mime-data.c @@ -106,7 +106,9 @@ preamble (cairo_test_context_t *ctx) return test_status; } - cairo_surface_set_mime_data (image, CAIRO_MIME_TYPE_JPEG, data, len, free); + cairo_surface_set_mime_data (image, CAIRO_MIME_TYPE_JPEG, + data, len, + free, data); width = cairo_image_surface_get_width (image); height = cairo_image_surface_get_height (image); |