Fixed text layer buffer memory leak