mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
DiscIO: Fix NAND Memory Leak
CNANDContentData is a base class with a non-virtual destructor so derived classes don't get destroyed causing them to leak resources.
This commit is contained in:
parent
54a643a4a3
commit
eccec3c6d3
@ -29,6 +29,8 @@
|
|||||||
|
|
||||||
namespace DiscIO
|
namespace DiscIO
|
||||||
{
|
{
|
||||||
|
CNANDContentData::~CNANDContentData() = default;
|
||||||
|
|
||||||
CSharedContent::CSharedContent()
|
CSharedContent::CSharedContent()
|
||||||
{
|
{
|
||||||
UpdateLocation();
|
UpdateLocation();
|
||||||
|
@ -25,6 +25,7 @@ bool AddTicket(u64 title_id, const std::vector<u8>& ticket);
|
|||||||
class CNANDContentData
|
class CNANDContentData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~CNANDContentData() = 0;
|
||||||
virtual void Open(){};
|
virtual void Open(){};
|
||||||
virtual const std::vector<u8> Get() = 0;
|
virtual const std::vector<u8> Get() = 0;
|
||||||
virtual bool GetRange(u32 start, u32 size, u8* buffer) = 0;
|
virtual bool GetRange(u32 start, u32 size, u8* buffer) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user