fixed some memory leaks in wemo plugin