Merge pull request #195 from chuckdumont/work

Fix memory leaks when uninstalling OSGi bundles.