Kiling a memory leak... I hate C interfaces
This commit is contained in:
parent
6ba2dd8caa
commit
970b2fb56c
@ -106,6 +106,7 @@ std::string CompilationDatabase::CompileCommandWorkingDirectoryForFile(
|
|||||||
path_to_directory = CXStringToString( clang_CompileCommand_getDirectory(
|
path_to_directory = CXStringToString( clang_CompileCommand_getDirectory(
|
||||||
command ) );
|
command ) );
|
||||||
|
|
||||||
|
clang_CompileCommands_dispose( commands );
|
||||||
return path_to_directory;
|
return path_to_directory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ class ClangCompleter( Completer ):
|
|||||||
self.future = None
|
self.future = None
|
||||||
return
|
return
|
||||||
|
|
||||||
# TODO: sanitize query
|
# TODO: sanitize query, probably in C++ code
|
||||||
|
|
||||||
files = ycm_core.UnsavedFileVec()
|
files = ycm_core.UnsavedFileVec()
|
||||||
if not query:
|
if not query:
|
||||||
|
Loading…
Reference in New Issue
Block a user