summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 6f7b1caf18..e6653d1a0d 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3402,8 +3402,7 @@ gtk_entry_create_layout (GtkEntry *entry,
pango_layout_set_attributes (layout, tmp_attrs);
- if (preedit_string)
- g_free (preedit_string);
+ g_free (preedit_string);
if (preedit_attrs)
pango_attr_list_unref (preedit_attrs);