For cairo there is cairo_debug_reset_static_data()
.
While writing this as a comment, I was looking into pixman's source and the implementation of _pixman_choose_implementation()
and apparently you cannot "clean up" pixman.
I have no clue about freetype.
Edit:
For fontconfig (related to freetype, so possibly interesting here), there is FcFini()
.