diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-03-08 02:09:32 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-03-08 02:09:32 +0800 |
commit | 7cd6d10e29c0d54783c33992f596faaac7f1ebd5 (patch) | |
tree | 5f0c11c69c43a5f8839d23a46d80519b1a12becd /embed/ephy-permission-manager.c | |
parent | 93b01f4ed0944cf698d59be3b8455f6034c39052 (diff) | |
download | gsoc2013-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
Diffstat (limited to 'embed/ephy-permission-manager.c')
-rw-r--r-- | embed/ephy-permission-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |