diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-03-28 23:06:10 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-03-28 23:06:10 +0800 |
commit | 378ddd7dc9a0abd724bc5636197b9b457a23090a (patch) | |
tree | 26ca1d3844aa7b71ebf47a16baa1edab6e0f2edd | |
parent | 20f6b71564c394bb456c14be139ae442a8639bf8 (diff) | |
download | gsoc2013-epiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.tar gsoc2013-epiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.tar.gz gsoc2013-epiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.tar.bz2 gsoc2013-epiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.tar.lz gsoc2013-epiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.tar.xz gsoc2013-epiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.tar.zst gsoc2013-epiphany-378ddd7dc9a0abd724bc5636197b9b457a23090a.zip |
Use g_slice for EphyCookie allocation. (#520560)
svn path=/branches/gnome-2-22/; revision=8140
-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); } } |