X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-msg.c;h=675fce396cdc9fbeb0d92ae60fc4f060ec57999b;hb=6da3c27d0ac2baf2c1c13b846d0c609b8a48c582;hp=ac45472f3a764e475c245c17381e72e312df25df;hpb=84c2681caafc791433135f704227111272e45203;p=modest diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index ac45472..675fce3 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -253,9 +253,6 @@ modest_tny_msg_get_body (TnyMsg *msg, gboolean want_html) tny_stream_reset (stream); tny_mime_part_decode_to_stream (body, stream); tny_stream_reset (stream); - - g_object_unref (G_OBJECT(stream)); - g_object_unref (G_OBJECT(body)); gtk_text_buffer_get_bounds (buf, &start, &end); to_quote = gtk_text_buffer_get_text (buf, &start, &end, FALSE); @@ -264,7 +261,10 @@ modest_tny_msg_get_body (TnyMsg *msg, gboolean want_html) g_free (to_quote); to_quote = to_quote_converted; } + g_object_unref (buf); + g_object_unref (G_OBJECT(stream)); + g_object_unref (G_OBJECT(body)); return to_quote; }