caja-engrampa: fixed memleaks, removed useless code