Memory Leaks fixed, error found in Text.cpp