mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-18 23:00:58 +00:00
Add FLAG_ALLOCATED_PAYLOAD to tell freeMessage() to also free the payload buffer. Don't free the message itself in freeMessage() because it's always stack allocated
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#define FLAG_ALLOCATED_OPTION_FIELDS 0x1
|
||||
#define FLAG_ALLOCATED_MESSAGE_BUFFER 0x2
|
||||
#define FLAG_ALLOCATED_OPTION_ITEMS 0x4
|
||||
#define FLAG_ALLOCATED_PAYLOAD 0x8
|
||||
|
||||
/* Linked List to store the options */
|
||||
typedef struct _OPTION_ITEM {
|
||||
|
||||
Reference in New Issue
Block a user