#include <stdlib.h>
#include <stdio.h>
#include <pango/pango.h>
#include <pango/pangoft2.h>

int main(int argc, char *argv[])
{
    int i;

    g_type_init ();

    for (i = 0; i < 100; i++)
    {
        PangoFontMap *fontmap;
        PangoContext *context;
        PangoLayout *layout;
        PangoRectangle logical_rect;

        fontmap = pango_ft2_font_map_new ();
        context = pango_font_map_create_context (PANGO_FONT_MAP (fontmap));
        g_object_unref (fontmap);

        layout = pango_layout_new (context);
        pango_layout_get_extents (layout, NULL, &logical_rect);
        g_object_unref (layout);

        g_object_unref (context);
    }


    return EXIT_SUCCESS;
}
