[evolution-data-server] imapx_server_get_message: Avoid unreffing a NULL stream.



commit bf6729711e4da03486f8c897ca192dfa72efe794
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Jan 10 18:02:54 2011 -0500

    imapx_server_get_message: Avoid unreffing a NULL stream.

 camel/providers/imapx/camel-imapx-server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 33e0156..029e8ee 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -5251,7 +5251,7 @@ imapx_server_get_message (CamelIMAPXServer *is,
 
 	if (success)
 		stream = job->u.get_message.stream;
-	else
+	else if (job->u.get_message.stream != NULL)
 		g_object_unref (job->u.get_message.stream);
 
 	g_free (job);



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