_get_global_font_dc() leak?
In _get_global_font_dc (void) in cairo-win32-font.c, CreateCompatibleDC (NULL) could return NULL, due to reaching GDI handle limit(10000). I presume this is because this function never releases the handles in TLS.
probably related: https://lists.freedesktop.org/archives/cairo/2007-April/010286.html
Edited by yonaka