epiphany r8044 - trunk/embed
- From: xan svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8044 - trunk/embed
- Date: Wed,  5 Mar 2008 19:04:02 +0000 (GMT)
Author: xan
Date: Wed Mar  5 19:04:02 2008
New Revision: 8044
URL: http://svn.gnome.org/viewvc/epiphany?rev=8044&view=rev
Log:
Use g_slice for EphyCookie allocation. (#520560)
Modified:
   trunk/embed/ephy-cookie-manager.c
Modified: trunk/embed/ephy-cookie-manager.c
==============================================================================
--- trunk/embed/ephy-cookie-manager.c	(original)
+++ trunk/embed/ephy-cookie-manager.c	Wed Mar  5 19:04:02 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]