From 7cbefa4ec208d48c0fe46b6069593730b130327b Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Sat, 3 Jan 2015 01:52:24 -0500 Subject: [PATCH] Fix memleak in OP_RaidUpdate --- 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 699b4e75a..0970215ef 100644 --- a/common/patches/rof.cpp +++ b/common/patches/rof.cpp @@ -2643,7 +2643,7 @@ namespace RoF dest->FastQueuePacket(&outapp); } - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_ReadBook) diff --git a/common/patches/rof2.cpp b/common/patches/rof2.cpp index 00a468534..478a992c2 100644 --- a/common/patches/rof2.cpp +++ b/common/patches/rof2.cpp @@ -2727,7 +2727,7 @@ namespace RoF2 dest->FastQueuePacket(&outapp); } - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_ReadBook) diff --git a/common/patches/sod.cpp b/common/patches/sod.cpp index e9c5430fb..8a240c05f 100644 --- a/common/patches/sod.cpp +++ b/common/patches/sod.cpp @@ -1705,7 +1705,7 @@ namespace SoD dest->FastQueuePacket(&outapp); } - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_ReadBook) diff --git a/common/patches/sof.cpp b/common/patches/sof.cpp index 93114e7ab..befb9a294 100644 --- a/common/patches/sof.cpp +++ b/common/patches/sof.cpp @@ -1363,7 +1363,7 @@ namespace SoF dest->FastQueuePacket(&outapp); } - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_ReadBook) diff --git a/common/patches/underfoot.cpp b/common/patches/underfoot.cpp index 0b9d527a6..03dd34fd0 100644 --- a/common/patches/underfoot.cpp +++ b/common/patches/underfoot.cpp @@ -1991,7 +1991,7 @@ namespace Underfoot dest->FastQueuePacket(&outapp); } - delete[] __emu_buffer; + safe_delete(inapp); } ENCODE(OP_ReadBook)