mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-08 18:33:37 +08:00
fix(Hooks): ReceivedEvent memory leak, thanks @ellisdudes
This commit is contained in:
parent
de9048e198
commit
9970caa2dd
@ -17,7 +17,7 @@ namespace big
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user