mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-30 22:59:51 +02:00
Client uses less memory allocations
This commit is contained in:
parent
6999391f43
commit
e9a5a36855
7 changed files with 135 additions and 44 deletions
|
@ -291,17 +291,6 @@ protected:
|
|||
virtual void doserialize(std::ostream& /*stream*/) const {};
|
||||
};
|
||||
|
||||
|
||||
struct SerializedMessage
|
||||
{
|
||||
~SerializedMessage()
|
||||
{
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
BaseMessage message;
|
||||
char* buffer;
|
||||
};
|
||||
}
|
||||
} // namespace msg
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue