aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-search.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder-search.c')
-rw-r--r--camel/camel-folder-search.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-folder-search.c b/camel/camel-folder-search.c
index 4d61b5cfa1..8bd1e90b24 100644
--- a/camel/camel-folder-search.c
+++ b/camel/camel-folder-search.c
@@ -116,8 +116,9 @@ camel_folder_search_finalize (CamelObject *obj)
CamelFolderSearch *search = (CamelFolderSearch *)obj;
struct _CamelFolderSearchPrivate *p = _PRIVATE(obj);
+ /* yeah, this is a gtk object */
if (search->sexp)
- camel_object_unref((CamelObject *)search->sexp);
+ gtk_object_unref(search->sexp);
g_free(search->last_search);
g_hash_table_foreach(p->mempool_hash, free_mempool, obj);