bugfix: fix mem leak in render event handler.

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