aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJohnny Jacob <jjohnny@src.gnome.org>2008-01-25 20:33:56 +0800
committerJohnny Jacob <jjohnny@src.gnome.org>2008-01-25 20:33:56 +0800
commit4d94a067247e11f8fd1c2de0427f636c7c8e9ec9 (patch)
treee25bda2c0fa6c6c6e3aac5312496d252c1407fe8 /composer/e-msg-composer.c
parentcdb4925134bd6fdf61bd58a7e43f60d343d8606d (diff)
downloadgsoc2013-evolution-4d94a067247e11f8fd1c2de0427f636c7c8e9ec9.tar.gz
gsoc2013-evolution-4d94a067247e11f8fd1c2de0427f636c7c8e9ec9.tar.zst
gsoc2013-evolution-4d94a067247e11f8fd1c2de0427f636c7c8e9ec9.zip
Fix for #503327 : Fixes memory leaks and a buffer overflow in attachment reminder.
svn path=/trunk/; revision=34890
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index f0bb36633f..56035b1aea 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -6262,7 +6262,7 @@ e_msg_composer_unset_autosaved (EMsgComposer *composer)
*
* Returns the text/plain of the message from composer
**/
-const gchar *
+GByteArray *
e_msg_composer_get_raw_message_text (EMsgComposer *composer)
{
GByteArray *data = NULL;
@@ -6271,7 +6271,7 @@ e_msg_composer_get_raw_message_text (EMsgComposer *composer)
data = get_text (p->persist_stream_interface, "text/plain");
if (data)
- return (const gchar *)data->data;
+ return data;
return NULL;
}