From 1b5db0684e6dab1a6b90437c1cc36d7b4e32b6bd Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Sat, 3 Jan 2015 02:38:55 -0500 Subject: [PATCH] Fix memleak in OP_RaidJoin --- common/patches/rof.cpp | 2 +- common/patches/rof2.cpp | 2 +- common/patches/sod.cpp | 2 +- common/patches/sof.cpp | 2 +- common/patches/underfoot.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/patches/rof.cpp b/common/patches/rof.cpp index 0970215ef..36d487545 100644 --- a/common/patches/rof.cpp +++ b/common/patches/rof.cpp @@ -2576,7 +2576,7 @@ namespace RoF strn0cpy(general->player_name, raid_create->leader_name, 64); dest->FastQueuePacket(&outapp_create); - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_RaidUpdate) diff --git a/common/patches/rof2.cpp b/common/patches/rof2.cpp index 478a992c2..02ac289a9 100644 --- a/common/patches/rof2.cpp +++ b/common/patches/rof2.cpp @@ -2660,7 +2660,7 @@ namespace RoF2 strn0cpy(general->player_name, raid_create->leader_name, 64); dest->FastQueuePacket(&outapp_create); - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_RaidUpdate) diff --git a/common/patches/sod.cpp b/common/patches/sod.cpp index 8a240c05f..7355526c4 100644 --- a/common/patches/sod.cpp +++ b/common/patches/sod.cpp @@ -1638,7 +1638,7 @@ namespace SoD strn0cpy(general->player_name, raid_create->leader_name, 64); dest->FastQueuePacket(&outapp_create); - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_RaidUpdate) diff --git a/common/patches/sof.cpp b/common/patches/sof.cpp index befb9a294..fc46c53cb 100644 --- a/common/patches/sof.cpp +++ b/common/patches/sof.cpp @@ -1296,7 +1296,7 @@ namespace SoF strn0cpy(general->player_name, raid_create->leader_name, 64); dest->FastQueuePacket(&outapp_create); - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_RaidUpdate) diff --git a/common/patches/underfoot.cpp b/common/patches/underfoot.cpp index 03dd34fd0..5ee38f586 100644 --- a/common/patches/underfoot.cpp +++ b/common/patches/underfoot.cpp @@ -1924,7 +1924,7 @@ namespace Underfoot strn0cpy(general->player_name, raid_create->leader_name, 64); dest->FastQueuePacket(&outapp_create); - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_RaidUpdate)