mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Fix memory leaks
This commit is contained in:
parent
598b53efff
commit
41d8cd9a0c
@ -79,3 +79,5 @@ const char* IpcIdToString(IpcId id) {
|
||||
|
||||
BaseIpcMessage::BaseIpcMessage(IpcId method_id)
|
||||
: method_id(method_id) {}
|
||||
|
||||
BaseIpcMessage::~BaseIpcMessage() = default;
|
@ -55,6 +55,7 @@ const char* IpcIdToString(IpcId id);
|
||||
struct BaseIpcMessage {
|
||||
const IpcId method_id;
|
||||
BaseIpcMessage(IpcId method_id);
|
||||
virtual ~BaseIpcMessage();
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
@ -101,6 +101,8 @@ MessageRegistry* MessageRegistry::instance() {
|
||||
return instance_;
|
||||
}
|
||||
|
||||
lsBaseOutMessage::~lsBaseOutMessage() = default;
|
||||
|
||||
void lsResponseError::Write(Writer& visitor) {
|
||||
auto& value = *this;
|
||||
int code2 = static_cast<int>(this->code);
|
||||
|
@ -98,6 +98,7 @@ struct MessageRegistry {
|
||||
|
||||
|
||||
struct lsBaseOutMessage {
|
||||
virtual ~lsBaseOutMessage();
|
||||
virtual void Write(std::ostream& out) = 0;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user