fix(Hooks): ReceivedEvent memory leak, thanks @ellisdudes
This commit is contained in:
parent
9c03a402d0
commit
02a707ed77
@ -17,7 +17,7 @@ namespace big
|
|||||||
int64_t bit_buffer
|
int64_t bit_buffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rage::datBitBuffer* buffer = new rage::datBitBuffer((void*)bit_buffer, (uint32_t)bit_buffer_size);
|
auto buffer = std::make_unique<rage::datBitBuffer>((void*)bit_buffer, (uint32_t)bit_buffer_size);
|
||||||
|
|
||||||
if (event_id > 90u) return false;
|
if (event_id > 90u) return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user