diff options
Diffstat (limited to 'src/cairo-pattern.c')
-rw-r--r-- | src/cairo-pattern.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index b2a1ab81b..b4927afcf 100644 --- a/src/cairo-pattern.c +++ b/src/cairo-pattern.c @@ -172,13 +172,15 @@ cairo_pattern_create_radial (double cx0, double cy0, double radius0, return pattern; } -void +cairo_pattern_t * cairo_pattern_reference (cairo_pattern_t *pattern) { if (pattern == NULL) - return; + return NULL; pattern->ref_count++; + + return pattern; } void |