Skip to content

Commit

Permalink
Releasing exported instances in InputComponentFactory and renamed res…
Browse files Browse the repository at this point in the history
…ources-impl package name
  • Loading branch information
gastaldi committed Jun 3, 2013
1 parent f06124c commit 19b62df
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 1 deletion.
Expand Up @@ -215,7 +215,9 @@ else if (Annotations.isAnnotationPresent(valueType, Exported.class))
List<Object> choiceList = new ArrayList<Object>();
for (ExportedInstance exportedInstance : addonRegistry.getExportedInstances(valueType))
{
choiceList.add(exportedInstance.get());
Object instance = exportedInstance.get();
choiceList.add(instance);
exportedInstance.release(instance);
}
choices = choiceList;
}
Expand Down

0 comments on commit 19b62df

Please sign in to comment.