Fix memory leaks

Method cleanup, in ViewDeck plugin, updated to release memory correctly.