[evolution-data-server] Do not call camel_mime_filter_basic_new recursively



commit c185f7aa512cd0da2d558e61c043d7d9ee73cf98
Author: Milan Crha <mcrha redhat com>
Date:   Tue Apr 6 16:36:57 2010 +0200

    Do not call camel_mime_filter_basic_new recursively

 camel/camel-mime-filter-basic.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-mime-filter-basic.c b/camel/camel-mime-filter-basic.c
index 6d8172e..ec06d5d 100644
--- a/camel/camel-mime-filter-basic.c
+++ b/camel/camel-mime-filter-basic.c
@@ -272,7 +272,8 @@ camel_mime_filter_basic_new (CamelMimeFilterBasicType type)
 	case CAMEL_MIME_FILTER_BASIC_QP_DEC:
 	case CAMEL_MIME_FILTER_BASIC_UU_ENC:
 	case CAMEL_MIME_FILTER_BASIC_UU_DEC:
-		new = camel_mime_filter_basic_new (type);
+		new = CAMEL_MIME_FILTER (camel_object_new (camel_mime_filter_basic_get_type ()));
+		CAMEL_MIME_FILTER_BASIC (new)->type = type;
 		break;
 	default:
 		g_warning ("Invalid type of CamelMimeFilterBasic requested: %u", type);



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