ps: Free page on error path.

This commit is contained in:
Chris Wilson 2010-03-22 10:36:47 +00:00
parent c8a8e57d6a
commit 213093f437

View file

@ -886,6 +886,7 @@ _cairo_ps_surface_get_page_media (cairo_ps_surface_t *surface)
}
if (unlikely (page->name == NULL)) {
free (page);
_cairo_error_throw (CAIRO_STATUS_NO_MEMORY);
return NULL;
}