diff options
Diffstat (limited to 'pango/pangox.c')
-rw-r--r-- | pango/pangox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangox.c b/pango/pangox.c index 1ce921b4..80151a65 100644 --- a/pango/pangox.c +++ b/pango/pangox.c @@ -414,7 +414,7 @@ pango_x_font_new (PangoFontMap *fontmap, const char *spec, int size) g_return_val_if_fail (fontmap != NULL, NULL); g_return_val_if_fail (spec != NULL, NULL); - result = (PangoXFont *)g_type_create_instance (PANGO_TYPE_X_FONT); + result = g_object_new (PANGO_TYPE_X_FONT, NULL); result->fontmap = fontmap; g_object_ref (fontmap); |