summaryrefslogtreecommitdiff
path: root/camel/camel-text-index.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2002-08-20 19:34:28 +0000
committerPeter Williams <peterw@src.gnome.org>2002-08-20 19:34:28 +0000
commit3d6029bb265f352a29a04c9c7f719bbf3e18c940 (patch)
treed47f52d8934f8d16ca9139fb3b3679add5dd6f4a /camel/camel-text-index.c
parente6c8aa38690123bfa4afaf7b560a19d1bb88dfdf (diff)
downloadevolution-data-server-3d6029bb265f352a29a04c9c7f719bbf3e18c940.tar.gz
Plug some large leaks in the indexing code.
2002-08-19 Peter Williams <peterw@ximian.com> Plug some large leaks in the indexing code. * camel-mime-filter-index.c (camel_mime_filter_index_set_index): Unref the old index if necessary. * camel-text-index.c (camel_text_index_get_type): Give it the correct parent type so that finalize handlers chain. (camel_text_index_name_get_type): Here too. (camel_text_index_cursor_get_type): Here too. (camel_text_index_key_cursor_get_type): Here too.
Diffstat (limited to 'camel/camel-text-index.c')
-rw-r--r--camel/camel-text-index.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-text-index.c b/camel/camel-text-index.c
index 8a5ab05bf..046c5a98d 100644
--- a/camel/camel-text-index.c
+++ b/camel/camel-text-index.c
@@ -784,7 +784,7 @@ camel_text_index_get_type(void)
static CamelType type = CAMEL_INVALID_TYPE;
if (type == CAMEL_INVALID_TYPE) {
- type = camel_type_register(camel_object_get_type(), "CamelTextIndex",
+ type = camel_type_register(camel_index_get_type(), "CamelTextIndex",
sizeof (CamelTextIndex),
sizeof (CamelTextIndexClass),
(CamelObjectClassInitFunc) camel_text_index_class_init,
@@ -1504,7 +1504,7 @@ camel_text_index_name_get_type(void)
static CamelType type = CAMEL_INVALID_TYPE;
if (type == CAMEL_INVALID_TYPE) {
- type = camel_type_register(camel_object_get_type(), "CamelTextIndexName",
+ type = camel_type_register(camel_index_name_get_type(), "CamelTextIndexName",
sizeof (CamelTextIndexName),
sizeof (CamelTextIndexNameClass),
(CamelObjectClassInitFunc) camel_text_index_name_class_init,
@@ -1620,7 +1620,7 @@ camel_text_index_cursor_get_type(void)
static CamelType type = CAMEL_INVALID_TYPE;
if (type == CAMEL_INVALID_TYPE) {
- type = camel_type_register(camel_object_get_type(), "CamelTextIndexCursor",
+ type = camel_type_register(camel_index_cursor_get_type(), "CamelTextIndexCursor",
sizeof (CamelTextIndexCursor),
sizeof (CamelTextIndexCursorClass),
(CamelObjectClassInitFunc) camel_text_index_cursor_class_init,
@@ -1732,7 +1732,7 @@ camel_text_index_key_cursor_get_type(void)
static CamelType type = CAMEL_INVALID_TYPE;
if (type == CAMEL_INVALID_TYPE) {
- type = camel_type_register(camel_object_get_type(), "CamelTextIndexKeyCursor",
+ type = camel_type_register(camel_index_cursor_get_type(), "CamelTextIndexKeyCursor",
sizeof (CamelTextIndexKeyCursor),
sizeof (CamelTextIndexKeyCursorClass),
(CamelObjectClassInitFunc) camel_text_index_key_cursor_class_init,