diff options
author | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-09-30 21:18:16 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-09-30 21:18:16 +0800 |
commit | df2795b7d741135fe4be18285e8a7e3d4a419234 (patch) | |
tree | 2dee8b95634ebf1fbb6298166a564a72057d62f6 | |
parent | 8c8b026fc6c22677eb05255eb4e1bbf1bda7dae3 (diff) | |
download | gsoc2013-epiphany-df2795b7d741135fe4be18285e8a7e3d4a419234.tar.gz gsoc2013-epiphany-df2795b7d741135fe4be18285e8a7e3d4a419234.tar.zst gsoc2013-epiphany-df2795b7d741135fe4be18285e8a7e3d4a419234.zip |
Changes g_value_set_string to g_value_take_string to avoid a leak. Also add the
g_value_unset calls for text and visible vars on extracell_data_func.
svn path=/trunk/; revision=7509
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 5 |
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 |