aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-dialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-07 07:00:38 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-07 07:00:38 +0800
commitcda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae (patch)
treeaa44f662c6b670985459e7b3e3e4b333f9084fe9 /lib/ephy-dialog.c
parentf6d5d88afad2d84ae8be385a1d63c8858cb78b5c (diff)
downloadgsoc2013-epiphany-cda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae.tar
gsoc2013-epiphany-cda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae.tar.gz
gsoc2013-epiphany-cda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae.tar.bz2
gsoc2013-epiphany-cda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae.tar.lz
gsoc2013-epiphany-cda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae.tar.xz
gsoc2013-epiphany-cda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae.tar.zst
gsoc2013-epiphany-cda0a0c5e93e986a83bfeb27c2faf48fa3f3d1ae.zip
Fix mem leak.
2003-06-07 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-dialog.c: (impl_get_value): * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_add): Fix mem leak.
Diffstat (limited to 'lib/ephy-dialog.c')
-rw-r--r--lib/ephy-dialog.c5
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))
{