[evolution-data-server] Bug #665025 - Memory leak in camel mime



commit b058e4b1004abcb36aa5683fe43f5b5f977a5f38
Author: Milan Crha <mcrha redhat com>
Date:   Fri Mar 9 16:46:01 2012 +0100

    Bug #665025 - Memory leak in camel mime

 camel/camel-data-wrapper.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index 1dee432..ac83359 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -257,6 +257,8 @@ data_wrapper_construct_from_stream_sync (CamelDataWrapper *data_wrapper,
 	bytes_written = camel_stream_write_to_stream (
 		stream, memory_stream, cancellable, error);
 
+	g_object_unref (memory_stream);
+
 	camel_data_wrapper_unlock (
 		data_wrapper, CAMEL_DATA_WRAPPER_STREAM_LOCK);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]