bugfix:
- remove dead code.
- fix invalid release call of platform interface.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>