Less mem leaks.

This commit is contained in:
Axel Naumann 2014-07-01 16:03:39 +02:00 committed by sftnight
parent 41d9497052
commit 0f77b4ff1b

View File

@ -109,8 +109,8 @@ namespace cling {
}
using namespace textinput;
StreamReader* R = StreamReader::Create();
TerminalDisplay* D = TerminalDisplay::Create();
llvm::OwningPtr<StreamReader> R(StreamReader::Create());
llvm::OwningPtr<TerminalDisplay> D(TerminalDisplay::Create());
TextInput TI(*R, *D, histfilePath.empty() ? 0 : histfilePath.c_str());
TI.SetPrompt("[cling]$ ");