diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-03-06 03:04:02 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-03-06 03:04:02 +0800 |
commit | 6dc3f43fc4e6365146859ce04f470dcab8d49e37 (patch) | |
tree | 03140033c5e92b165c8df3593436b4221ebae6a6 /embed | |
parent | b4f8f721cb430ea8e9bc553495457f810ac79818 (diff) | |
download | gsoc2013-epiphany-6dc3f43fc4e6365146859ce04f470dcab8d49e37.tar gsoc2013-epiphany-6dc3f43fc4e6365146859ce04f470dcab8d49e37.tar.gz gsoc2013-epiphany-6dc3f43fc4e6365146859ce04f470dcab8d49e37.tar.bz2 gsoc2013-epiphany-6dc3f43fc4e6365146859ce04f470dcab8d49e37.tar.lz gsoc2013-epiphany-6dc3f43fc4e6365146859ce04f470dcab8d49e37.tar.xz gsoc2013-epiphany-6dc3f43fc4e6365146859ce04f470dcab8d49e37.tar.zst gsoc2013-epiphany-6dc3f43fc4e6365146859ce04f470dcab8d49e37.zip |
Use g_slice for EphyCookie allocation. (#520560)
svn path=/trunk/; revision=8044
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-cookie-manager.c | 6 |
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); } } |