aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-config-druid.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 41c7fc36c0..de81f0a67c 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,11 @@
2001-01-28 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-config-druid.c (set_defaults): Turns out that I was wrong
+ about the g_get_real_name mem leak, god damn glib for not
+ following the const char* standard.
+
+2001-01-28 Jeffrey Stedfast <fejj@ximian.com>
+
* mail-config-druid.c (management_prepare): Use UTF-8.
(set_defaults): Use UTF-8 and also fixed a memory leak by freeing
the string returned by g_get_real_name().
diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c
index 908eb01498..fdb2ddb448 100644
--- a/mail/mail-config-druid.c
+++ b/mail/mail-config-druid.c
@@ -783,10 +783,8 @@ set_defaults (MailConfigDruid *druid)
/* set the default Name field */
realname = g_get_real_name ();
- if (realname) {
+ if (realname)
e_utf8_gtk_entry_set_text (druid->full_name, realname);
- g_free (realname);
- }
/* set the default E-Mail Address field */
user = getenv ("USER");