Added line in destructor of MOAITextRenderer to set the shared pointer member variable to null.