epiphany r8140 - branches/gnome-2-22/embed



Author: chpe
Date: Fri Mar 28 15:06:10 2008
New Revision: 8140
URL: http://svn.gnome.org/viewvc/epiphany?rev=8140&view=rev

Log:
Use g_slice for EphyCookie allocation. (#520560)



Modified:
   branches/gnome-2-22/embed/ephy-cookie-manager.c

Modified: branches/gnome-2-22/embed/ephy-cookie-manager.c
==============================================================================
--- branches/gnome-2-22/embed/ephy-cookie-manager.c	(original)
+++ branches/gnome-2-22/embed/ephy-cookie-manager.c	Fri Mar 28 15:06:10 2008
@@ -46,7 +46,7 @@
 EphyCookie *
 ephy_cookie_new (void)
 {
-	return g_new0 (EphyCookie, 1);
+	return g_slice_new0 (EphyCookie);
 }
 
 /**
@@ -58,7 +58,7 @@
 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 @@
 		g_free (cookie->domain);
 		g_free (cookie->path);
 
-		g_free (cookie);
+		g_slice_free (EphyCookie, cookie);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]