2005-12-06 [paul] 1.9.100cvs69
[claws.git] / src / plugins / clamav / clamav_plugin.c
index d71515674f7e89d6bea9849b26e821501facdc2c..101ec938ae98f4811ff5c0e61c74c4cfdbfbc6c9 100644 (file)
@@ -185,12 +185,14 @@ void clamav_set_message_callback(MessageCallback callback)
        message_callback = callback;
 }
 
-void cl_buildtrie(struct cl_node *root);
-void cl_freetrie(struct cl_node *root);
+int cl_build(struct cl_node *root);
+void cl_free(struct cl_node *root);
 gint plugin_init(gchar **error)
 {
        gchar *rcpath;
-       int no, ret;
+       int ret;
+       unsigned int no;
+
        if ((sylpheed_get_version() > VERSION_NUMERIC)) {
                *error = g_strdup("Your version of Sylpheed-Claws is newer than the version the ClamAV plugin was built with");
                return -1;
@@ -237,6 +239,8 @@ void plugin_done(void)
        hooks_unregister_hook(MAIL_FILTERING_HOOKLIST, hook_id);
        g_free(config.clamav_save_folder);
        cl_free(cl_database);
+       clamav_gtk_done();
+
        debug_print("ClamAV plugin unloaded\n");
 }