aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.c
diff options
context:
space:
mode:
authorJason Leach <jasonleach@usa.net>2001-01-16 06:54:18 +0800
committerJacob Leach <jleach@src.gnome.org>2001-01-16 06:54:18 +0800
commitcab9d633da616bc98a9b1479f8d79796a36c0b38 (patch)
tree26ba9591f469333f591ddb36cd443be6472dcc74 /composer/e-msg-composer-hdrs.c
parent754e77948a22d6570dcb879a8992b05e6e4c113f (diff)
downloadgsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.tar.gz
gsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.tar.zst
gsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.zip
(Plug leaking the subject string on each message sent)
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(). svn path=/trunk/; revision=7516
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r--composer/e-msg-composer-hdrs.c3
1 files changed, 1 insertions, 2 deletions
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;
}