aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/widgets/ephy-location-entry.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 08843166e..0282589ff 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -1028,11 +1028,14 @@ extracell_data_func (GtkCellLayout *cell_layout,
g_value_init (&text, G_TYPE_STRING);
g_value_init (&visible, G_TYPE_BOOLEAN);
- g_value_set_string (&text, cdata);
+ g_value_take_string (&text, cdata);
g_value_set_boolean (&visible, (cdata != NULL));
g_object_set_property (G_OBJECT (cell), "text", &text);
g_object_set_property (G_OBJECT (cell), "visible", &visible);
+
+ g_value_unset (&text);
+ g_value_unset (&visible);
}
void