diff options
Diffstat (limited to 'lib/ephy-dialog.c')
-rw-r--r-- | lib/ephy-dialog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c index 8bdfc5330..9f484704c 100644 --- a/lib/ephy-dialog.c +++ b/lib/ephy-dialog.c @@ -824,9 +824,10 @@ impl_get_value (EphyDialog *dialog, } else if (GTK_IS_EDITABLE (widget)) { + gchar *text = gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1); g_value_init (value, G_TYPE_STRING); - g_value_set_string (value, gtk_editable_get_chars - (GTK_EDITABLE (widget), 0, -1)); + g_value_set_string (value, text); + g_free (text); } else if (GTK_IS_OPTION_MENU (widget)) { |