Reset registration function for each plugin during feature loading

This commit is contained in:
Martin Willi
2011-10-14 10:05:49 +02:00
parent 9099e4fd3c
commit 59c4e88b16
+2 -1
View File
@@ -331,7 +331,7 @@ static bool dependency_required(private_plugin_loader_t *this,
static int load_features(private_plugin_loader_t *this, bool soft, bool report) static int load_features(private_plugin_loader_t *this, bool soft, bool report)
{ {
enumerator_t *enumerator; enumerator_t *enumerator;
plugin_feature_t *feature, *reg = NULL; plugin_feature_t *feature, *reg;
plugin_entry_t *entry; plugin_entry_t *entry;
int count, i, loaded = 0; int count, i, loaded = 0;
@@ -342,6 +342,7 @@ static int load_features(private_plugin_loader_t *this, bool soft, bool report)
{ /* feature interface not supported */ { /* feature interface not supported */
continue; continue;
} }
reg = NULL;
count = entry->plugin->get_features(entry->plugin, &feature); count = entry->plugin->get_features(entry->plugin, &feature);
for (i = 0; i < count; i++) for (i = 0; i < count; i++)
{ {