Kiling a memory leak... I hate C interfaces

This commit is contained in:
Strahinja Val Markovic 2013-01-22 17:29:05 -08:00
parent 6ba2dd8caa
commit 970b2fb56c
2 changed files with 2 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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: