[evolution-data-server] CamelIMAPXCommand: Add a reference count.



commit 8f371eda263b5dc55fcd318960b62bf390edd1d3
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Dec 1 21:51:44 2011 -0600

    CamelIMAPXCommand: Add a reference count.

 camel/providers/imapx/camel-imapx-server.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 9173d6c..e1d9262 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -130,6 +130,8 @@ typedef void (*CamelIMAPXCommandFunc)(struct _CamelIMAPXServer *engine, struct _
 struct _CamelIMAPXCommand {
 	struct _CamelIMAPXCommand *next, *prev;
 
+	volatile gint ref_count;
+
 	CamelIMAPXServer *is;
 	gint pri;
 
@@ -773,6 +775,7 @@ camel_imapx_command_new (CamelIMAPXServer *is,
 		g_object_ref (cancellable);
 
 	ic = g_slice_new0 (CamelIMAPXCommand);
+	ic->ref_count = 1;
 	ic->tag = tag++;
 	ic->name = name;
 	ic->mem = (CamelStreamMem *) camel_stream_mem_new ();



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