ClangdFollowSymbol: Don't leak ClangdFollowSymbol::Private

Change-Id: Ic8486d832084ae700322f0696d7b7321f0daf35f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2022-07-18 18:46:30 +02:00
parent 5c341854e0
commit a91ff34836

View File

@@ -195,6 +195,7 @@ ClangdFollowSymbol::~ClangdFollowSymbol()
d->client->cancelRequest(id); d->client->cancelRequest(id);
for (const MessageId &id : qAsConst(d->pendingGotoDefRequests)) for (const MessageId &id : qAsConst(d->pendingGotoDefRequests))
d->client->cancelRequest(id); d->client->cancelRequest(id);
delete d;
} }
void ClangdFollowSymbol::clear() void ClangdFollowSymbol::clear()