aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-03-08 02:09:32 +0800
committerXan Lopez <xan@src.gnome.org>2008-03-08 02:09:32 +0800
commit7cd6d10e29c0d54783c33992f596faaac7f1ebd5 (patch)
tree5f0c11c69c43a5f8839d23a46d80519b1a12becd
parent93b01f4ed0944cf698d59be3b8455f6034c39052 (diff)
downloadgsoc2013-epiphany-7cd6d10e29c0d54783c33992f596faaac7f1ebd5.tar
gsoc2013-epiphany-7cd6d10e29c0d54783c33992f596faaac7f1ebd5.tar.gz
gsoc2013-epiphany-7cd6d10e29c0d54783c33992f596faaac7f1ebd5.tar.bz2
gsoc2013-epiphany-7cd6d10e29c0d54783c33992f596faaac7f1ebd5.tar.lz
gsoc2013-epiphany-7cd6d10e29c0d54783c33992f596faaac7f1ebd5.tar.xz
gsoc2013-epiphany-7cd6d10e29c0d54783c33992f596faaac7f1ebd5.tar.zst
gsoc2013-epiphany-7cd6d10e29c0d54783c33992f596faaac7f1ebd5.zip
Use g_slice for EphyPasswordInfo, EphyPermissionInfo, PixbufCacheEntry. (#521017)
svn path=/trunk/; revision=8054
-rw-r--r--embed/ephy-favicon-cache.c4
-rw-r--r--embed/ephy-password-manager.c6
-rw-r--r--embed/ephy-permission-manager.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index cd6ba4862..550c0937b 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -155,7 +155,7 @@ pixbuf_cache_entry_free (PixbufCacheEntry *entry)
g_object_unref (entry->pixbuf);
}
- g_free (entry);
+ g_slice_free (PixbufCacheEntry, entry);
}
static gboolean
@@ -173,7 +173,7 @@ icons_added_cb (EphyNode *node,
EphyNode *child,
EphyFaviconCache *eb)
{
- PixbufCacheEntry *entry = g_new0 (PixbufCacheEntry, 1);
+ PixbufCacheEntry *entry = g_slice_new0 (PixbufCacheEntry);
entry->node = child;
diff --git a/embed/ephy-password-manager.c b/embed/ephy-password-manager.c
index 6f1b49520..ef3bb1e2c 100644
--- a/embed/ephy-password-manager.c
+++ b/embed/ephy-password-manager.c
@@ -57,7 +57,7 @@ ephy_password_info_new (const char *host,
const char *username,
const char *password)
{
- EphyPasswordInfo *info = g_new0 (EphyPasswordInfo, 1);
+ EphyPasswordInfo *info = g_slice_new0 (EphyPasswordInfo);
info->host = g_strdup (host);
info->username = g_strdup (username);
@@ -75,7 +75,7 @@ ephy_password_info_new (const char *host,
EphyPasswordInfo *
ephy_password_info_copy (const EphyPasswordInfo *info)
{
- EphyPasswordInfo *copy = g_new0 (EphyPasswordInfo, 1);
+ EphyPasswordInfo *copy = g_slice_new0 (EphyPasswordInfo);
copy->host = g_strdup (info->host);
copy->username = g_strdup (info->username);
@@ -98,7 +98,7 @@ ephy_password_info_free (EphyPasswordInfo *info)
g_free (info->host);
g_free (info->username);
g_free (info->password);
- g_free (info);
+ g_slice_free (EphyPasswordInfo, info);
}
}
diff --git a/embed/ephy-permission-manager.c b/embed/ephy-permission-manager.c
index 9d6252fbb..b80d41ffe 100644
--- a/embed/ephy-permission-manager.c
+++ b/embed/ephy-permission-manager.c
@@ -54,7 +54,7 @@ ephy_permission_info_new (const char *host,
const char *type,
EphyPermission permission)
{
- EphyPermissionInfo *info = g_new0 (EphyPermissionInfo, 1);
+ EphyPermissionInfo *info = g_slice_new0 (EphyPermissionInfo);
info->host = g_strdup (host);
info->qtype = g_quark_from_string (type);
@@ -72,7 +72,7 @@ ephy_permission_info_new (const char *host,
EphyPermissionInfo *
ephy_permission_info_copy (const EphyPermissionInfo *info)
{
- EphyPermissionInfo *copy = g_new0 (EphyPermissionInfo, 1);
+ EphyPermissionInfo *copy = g_slice_new0 (EphyPermissionInfo);
copy->host = g_strdup (info->host);
copy->qtype = info->qtype;
@@ -93,7 +93,7 @@ ephy_permission_info_free (EphyPermissionInfo *info)
if (info != NULL)
{
g_free (info->host);
- g_free (info);
+ g_slice_free (EphyPermissionInfo, info);
}
}