diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-23 10:51:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-23 20:08:30 +0100 |
commit | b7ab1fc791139f5d0fd38692b63514ed02bc8b51 (patch) | |
tree | dc8c67c77b0d073e14e6622b1d896b8ad40f600b /src/cairo-font-face.c | |
parent | 0204d2f4e2dd89f1fcf06f2d18e68f6ab7452f91 (diff) | |
download | cairo-b7ab1fc791139f5d0fd38692b63514ed02bc8b51.tar.gz |
Return the real error status for set_user_data()
Instead of returning a new NO_MEMORY error, return the status from the
error object.
Diffstat (limited to 'src/cairo-font-face.c')
-rw-r--r-- | src/cairo-font-face.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c index 4f822a21c..5af0c63ff 100644 --- a/src/cairo-font-face.c +++ b/src/cairo-font-face.c @@ -306,7 +306,7 @@ cairo_font_face_set_user_data (cairo_font_face_t *font_face, cairo_destroy_func_t destroy) { if (CAIRO_REFERENCE_COUNT_IS_INVALID (&font_face->ref_count)) - return _cairo_error (CAIRO_STATUS_NO_MEMORY); + return font_face->status; return _cairo_user_data_array_set_data (&font_face->user_data, key, user_data, destroy); |