app: allow pango_context not existing.
This fixes a CRITICAL on exit when calling GIMP with --no-fonts: > g_object_unref: assertion 'G_IS_OBJECT (object)' failed
This commit is contained in:
parent
00e9ad2f77
commit
b9277e094a
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ gimp_font_factory_finalize (GObject *object)
|
|||
g_slist_free_full (GET_PRIVATE (font_factory)->fonts_renaming_config, (GDestroyNotify) g_free);
|
||||
g_free (GET_PRIVATE (font_factory)->sysconf);
|
||||
g_free (GET_PRIVATE (font_factory)->conf);
|
||||
g_object_unref (GET_PRIVATE (font_factory)->pango_context);
|
||||
g_clear_object (&GET_PRIVATE (font_factory)->pango_context);
|
||||
FcConfigDestroy (FcConfigGetCurrent ());
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
|
|
|
|||
Loading…
Reference in a new issue