Removed duplicated dealloc from second pull request for copy issue.