aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-29 08:46:18 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-29 08:46:18 +0800
commit6fd48a6f476245f52b0653cb1b9f0f298798c07a (patch)
tree84243268ec1379ef0ee7c2a34b629c9023f9e66c /mail
parent8e1a4026c9c7a37e8c8fa17af647fb99ebaa1f33 (diff)
downloadgsoc2013-evolution-6fd48a6f476245f52b0653cb1b9f0f298798c07a.tar
gsoc2013-evolution-6fd48a6f476245f52b0653cb1b9f0f298798c07a.tar.gz
gsoc2013-evolution-6fd48a6f476245f52b0653cb1b9f0f298798c07a.tar.bz2
gsoc2013-evolution-6fd48a6f476245f52b0653cb1b9f0f298798c07a.tar.lz
gsoc2013-evolution-6fd48a6f476245f52b0653cb1b9f0f298798c07a.tar.xz
gsoc2013-evolution-6fd48a6f476245f52b0653cb1b9f0f298798c07a.tar.zst
gsoc2013-evolution-6fd48a6f476245f52b0653cb1b9f0f298798c07a.zip
Turns out that I was wrong about the g_get_real_name mem leak, god damn
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. svn path=/trunk/; revision=7882
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");