diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-09-01 19:53:18 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-09-01 19:53:18 +0800 |
commit | f5be7984b2ea1a4c3591cc11090220c080216aec (patch) | |
tree | 5b68ba93733115cc451adce0b674ececa9122f2c /camel/camel-mime-message.c | |
parent | a5dc758170c40d86ee361f607eae62aa6e7509d8 (diff) | |
download | gsoc2013-evolution-f5be7984b2ea1a4c3591cc11090220c080216aec.tar.gz 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-mime-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 609bdb7e87..9ccf2fc9e4 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -184,11 +184,11 @@ _finalize (GtkObject *object) CamelMimeMessage *message = CAMEL_MIME_MESSAGE (object); CAMEL_LOG_FULL_DEBUG ("Entering CamelMimeMessage::finalize\n"); - if (message->received_date) g_free (message->received_date); - if (message->sent_date) g_free (message->sent_date); - if (message->subject) g_free (message->subject); - if (message->reply_to) g_free (message->reply_to); - if (message->from) g_free (message->from); + g_free (message->received_date); + g_free (message->sent_date); + g_free (message->subject); + g_free (message->reply_to); + g_free (message->from); #warning free recipients. if (message->folder) gtk_object_unref (GTK_OBJECT (message->folder)); @@ -221,7 +221,7 @@ static void _set_field (CamelMimeMessage *mime_message, gchar *name, gchar *value, gchar **variable) { if (variable) { - if (*variable) g_free (*variable); + g_free (*variable); *variable = value; } } |