diff options
author | Loïc Minier <lool@dooz.org> | 2009-04-15 00:01:54 +0200 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2009-04-15 00:01:54 +0200 |
commit | 7c8a91c96c3ad403e36f8b131c70b2b7c6f7a5c4 (patch) | |
tree | 6aafdce4b4ca5e3597ccf0d7bb84119fc650a138 /src/cairo-ps-surface.c | |
parent | 26457cd0008a85517fe0ce6ce25fbeb26baed0f7 (diff) |
Imported Upstream version 1.4.12
Diffstat (limited to 'src/cairo-ps-surface.c')
-rw-r--r-- | src/cairo-ps-surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index 919a498..2da20d4 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -2037,7 +2037,7 @@ _cairo_ps_surface_stroke (void *abstract_surface, * can modify some of the values. */ if (num_dashes % 2) { - dash = malloc (2 * num_dashes * sizeof (double)); + dash = _cairo_malloc_abc (num_dashes, 2, sizeof (double)); if (dash == NULL) return CAIRO_STATUS_NO_MEMORY; @@ -2215,7 +2215,7 @@ _cairo_ps_surface_show_glyphs (void *abstract_surface, num_glyphs_unsigned = num_glyphs; _cairo_ps_surface_emit_pattern (surface, source); - glyph_ids = malloc (num_glyphs_unsigned*sizeof (cairo_ps_glyph_id_t)); + glyph_ids = _cairo_malloc_ab (num_glyphs_unsigned, sizeof (cairo_ps_glyph_id_t)); if (glyph_ids == NULL) return CAIRO_STATUS_NO_MEMORY; |