aboutsummaryrefslogtreecommitdiffstats
path: root/composer
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
parent754e77948a22d6570dcb879a8992b05e6e4c113f (diff)
downloadgsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.tar
gsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.tar.gz
gsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.tar.bz2
gsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.tar.lz
gsoc2013-evolution-cab9d633da616bc98a9b1479f8d79796a36c0b38.tar.xz
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')
-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;
}