summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkfontchooserwidget.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 71475f9cf7..1b391b52a8 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -444,16 +444,6 @@ cursor_changed_cb (GtkTreeView *treeview,
gtk_tree_path_free (path);
path = NULL;
- if (face == NULL || family == NULL)
- {
- if (face)
- g_object_unref (face);
- if (family)
- g_object_unref (family);
-
- return;
- }
-
desc = pango_font_face_describe (face);
pango_font_description_set_size (desc, priv->size);
gtk_widget_override_font (priv->preview, desc);