summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
147112f)
(construct_from_text)
Fix a memory leak building the TnyStream
* src/modest-tny-msg.c
(add_body_part)
(add_html_body_part):
Fix a memory leak building the TnyStream
pmo-trunk-r4283
#include <tny-header.h>
#include <tny-simple-list.h>
#include <tny-gtk-text-buffer-stream.h>
#include <tny-header.h>
#include <tny-simple-list.h>
#include <tny-gtk-text-buffer-stream.h>
-#include <tny-camel-stream.h>
-#include <camel/camel-stream-mem.h>
+#include <tny-camel-mem-stream.h>
#include "modest-formatter.h"
#include "modest-text-utils.h"
#include "modest-tny-platform-factory.h"
#include "modest-formatter.h"
#include "modest-text-utils.h"
#include "modest-tny-platform-factory.h"
TnyStream *text_body_stream;
/* Create the stream */
TnyStream *text_body_stream;
/* Create the stream */
- text_body_stream = TNY_STREAM (tny_camel_stream_new
- (camel_stream_mem_new_with_buffer
- (text, strlen(text))));
+ text_body_stream = TNY_STREAM (tny_camel_mem_stream_new_with_buffer
+ (text, strlen(text)));
/* Construct MIME part */
tny_stream_reset (text_body_stream);
/* Construct MIME part */
tny_stream_reset (text_body_stream);
#include <tny-folder.h>
#include <modest-runtime.h>
#include "modest-formatter.h"
#include <tny-folder.h>
#include <modest-runtime.h>
#include "modest-formatter.h"
-#include <tny-camel-stream.h>
+#include <tny-camel-mem-stream.h>
#include <tny-camel-mime-part.h>
#include <tny-camel-mime-part.h>
-#include <camel/camel-stream-buffer.h>
-#include <camel/camel-stream-mem.h>
#include <glib/gprintf.h>
#include <modest-tny-folder.h>
#include "modest-tny-mime-part.h"
#include <glib/gprintf.h>
#include <modest-tny-folder.h>
#include "modest-tny-mime-part.h"
TnyStream *text_body_stream;
/* Create the stream */
TnyStream *text_body_stream;
/* Create the stream */
- text_body_stream = TNY_STREAM (tny_camel_stream_new
- (camel_stream_mem_new_with_buffer
- (body, (body ? strlen(body) : 0))));
+ text_body_stream = TNY_STREAM (tny_camel_mem_stream_new_with_buffer
+ (body, (body ? strlen(body) : 0)));
text_body_part = modest_formatter_create_body_part (NULL, msg);
text_body_part = modest_formatter_create_body_part (NULL, msg);
TnyStream *html_body_stream;
/* Create the stream */
TnyStream *html_body_stream;
/* Create the stream */
- html_body_stream = TNY_STREAM (tny_camel_stream_new
- (camel_stream_mem_new_with_buffer
- (body, strlen(body))));
+ html_body_stream = TNY_STREAM (tny_camel_mem_stream_new_with_buffer
+ (body, strlen(body)));
/* Create body part if needed */
html_body_part = modest_formatter_create_body_part (NULL, msg);
/* Create body part if needed */
html_body_part = modest_formatter_create_body_part (NULL, msg);