aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog8
-rw-r--r--composer/e-msg-composer-hdrs.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 3d9b0eacdf..9ae7200936 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,11 @@
+2001-01-15 Jason Leach <jasonleach@usa.net>
+
+ (Plug leaking the subject string on each message sent)
+
+ * e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_subject): Don't
+ strdup before returning the subject, it's already been strdup'd
+ from the gtk_object_get().
+
2001-01-13 Jason Leach <jasonleach@usa.net>
(Fix Bug #1083: Composer IDLs not getting installed)
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index b4775f7de8..862938f665 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -678,7 +678,6 @@ e_msg_composer_hdrs_get_bcc (EMsgComposerHdrs *hdrs)
return NULL;
}
-/* FIXME: This is just changed to return allooc'd mem to be consistant with get_from */
char *
e_msg_composer_hdrs_get_subject (EMsgComposerHdrs *hdrs)
{
@@ -690,7 +689,7 @@ e_msg_composer_hdrs_get_subject (EMsgComposerHdrs *hdrs)
gtk_object_get (GTK_OBJECT (hdrs->priv->subject_entry),
"text", &subject, NULL);
- return g_strdup (subject);
+ return subject;
}