aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-09-01 19:53:18 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-09-01 19:53:18 +0800
commitf5be7984b2ea1a4c3591cc11090220c080216aec (patch)
tree5b68ba93733115cc451adce0b674ececa9122f2c /camel/camel-folder.c
parenta5dc758170c40d86ee361f607eae62aa6e7509d8 (diff)
downloadgsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.tar
gsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.tar.gz
gsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.tar.bz2
gsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.tar.lz
gsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.tar.xz
gsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.tar.zst
gsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.zip
When using g_free (obj) don't test if obj != NULL g_free () already do
1999-09-01 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-folder.c (_finalize): (_set_name): * camel/camel-mime-message.c (_finalize): * camel/camel-mime-part.c (_finalize): (_set_description): (_set_disposition): * camel/camel-service.c (_finalize): * camel/camel-stream-fs.c (_finalize): * camel/gmime-content-field.c: (gmime_content_field_construct_from_string): * camel/url-util.c (g_url_free): When using g_free (obj) don't test if obj != NULL g_free () already do that. Thanks to elerium for the feedback. 19 svn path=/trunk/; revision=1151
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index d7f9390f1c..a25f783229 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -134,9 +134,9 @@ _finalize (GtkObject *object)
CAMEL_LOG_FULL_DEBUG ("Entering CamelFolder::finalize\n");
- if (camel_folder->name) g_free (camel_folder->name);
- if (camel_folder->full_name) g_free (camel_folder->full_name);
- if (camel_folder->permanent_flags) g_free (camel_folder->permanent_flags);
+ g_free (camel_folder->name);
+ g_free (camel_folder->full_name);
+ g_free (camel_folder->permanent_flags);
if (camel_folder->message_list) {
/* unref all messages got from the folder */
message_node = camel_folder->message_list;
@@ -217,8 +217,8 @@ _set_name (CamelFolder *folder, const gchar *name)
g_assert (name);
g_assert (folder->parent_store);
- if (folder->name) g_free(folder->name);
- if (folder->full_name) g_free (folder->full_name);
+ g_free (folder->name);
+ g_free (folder->full_name);
separator = camel_store_get_separator (folder->parent_store);
@@ -256,7 +256,7 @@ camel_folder_set_name (CamelFolder *folder, const gchar *name)
static void
_set_full_name (CamelFolder *folder, const gchar *name)
{
- if (folder->full_name) g_free(folder->full_name);
+ g_free(folder->full_name);
folder->full_name = g_strdup (name);
}