integrated visual leak detector, fixed current memory leaks