mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +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
|
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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user