Memory leak corrigido