mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-17 06:25:23 +03:00
Fix a memory leak in the debugger session where memory was never released after session due to cyclic references in ModelVariableNode.
Fix an incorrect std::move in `DebuggerClientDap::variables` which could have caused incorrect states. Fix invalid memory access in `LSPDocumentClient::requestSemanticHighlighting`.
This commit is contained in:
@@ -175,9 +175,9 @@ void LSPDocumentClient::requestSemanticHighlighting( bool reqFull ) {
|
||||
Uint64 docModId = mDoc->getModificationId();
|
||||
mServer->documentSemanticTokensFull(
|
||||
mDoc->getURI(), delta, reqId, range,
|
||||
[docClient, uri, server, docModId, this]( const auto&, LSPSemanticTokensDelta&& deltas ) {
|
||||
BoolScopedOp op( mProcessingSemanticTokensResponse, true );
|
||||
[docClient, uri, server, docModId]( const auto&, LSPSemanticTokensDelta&& deltas ) {
|
||||
if ( server->hasDocumentClient( docClient ) && server->hasDocument( uri ) ) {
|
||||
BoolScopedOp op( docClient->mProcessingSemanticTokensResponse, true );
|
||||
docClient->mWaitingSemanticTokensResponse = false;
|
||||
docClient->processTokens( std::move( deltas ), docModId );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user