summaryrefslogtreecommitdiff
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-03-28 15:06:10 +0000
committerChristian Persch <chpe@src.gnome.org>2008-03-28 15:06:10 +0000
commit378ddd7dc9a0abd724bc5636197b9b457a23090a (patch)
tree26ca1d3844aa7b71ebf47a16baa1edab6e0f2edd /embed
parent20f6b71564c394bb456c14be139ae442a8639bf8 (diff)
downloadepiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.tar.gz
Use g_slice for EphyCookie allocation. (#520560)
svn path=/branches/gnome-2-22/; revision=8140
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-cookie-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/ephy-cookie-manager.c b/embed/ephy-cookie-manager.c
index 08c3afad1..fe06907f2 100644
--- a/embed/ephy-cookie-manager.c
+++ b/embed/ephy-cookie-manager.c
@@ -46,7 +46,7 @@ ephy_cookie_get_type (void)
EphyCookie *
ephy_cookie_new (void)
{
- return g_new0 (EphyCookie, 1);
+ return g_slice_new0 (EphyCookie);
}
/**
@@ -58,7 +58,7 @@ ephy_cookie_new (void)
EphyCookie *
ephy_cookie_copy (const EphyCookie *cookie)
{
- EphyCookie *copy = g_new0 (EphyCookie, 1);
+ EphyCookie *copy = g_slice_new0 (EphyCookie);
copy->name = g_strdup (cookie->name);
copy->value = g_strdup (cookie->value);
@@ -88,7 +88,7 @@ ephy_cookie_free (EphyCookie *cookie)
g_free (cookie->domain);
g_free (cookie->path);
- g_free (cookie);
+ g_slice_free (EphyCookie, cookie);
}
}