moved previous mem leak fix to src files and rebuilt