Less mem leaks.
This commit is contained in:
parent
41d9497052
commit
0f77b4ff1b
@ -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]$ ");
|
||||
|
Loading…
Reference in New Issue
Block a user