Revert "start fixing memory leaks"

Reverts qute/qute#11