fixed plugin loader destruction
authorMartin Willi <martin@strongswan.org>
Wed, 25 Jun 2008 14:53:49 +0000 (14:53 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 25 Jun 2008 14:53:49 +0000 (14:53 -0000)
src/libstrongswan/plugins/plugin_loader.c

index c2996f7..b19a6af 100644 (file)
@@ -169,7 +169,7 @@ static enumerator_t* create_plugin_enumerator(private_plugin_loader_t *this)
 static void destroy(private_plugin_loader_t *this)
 {
        this->plugins->destroy_offset(this->plugins, offsetof(plugin_t, destroy));
-       this->plugins->destroy_function(this->plugins, free);
+       this->names->destroy_function(this->names, free);
        free(this);
 }