From b85902ccb5af8d46aa032f4e0502372dcb4716c0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 25 Nov 2023 17:58:54 -0500 Subject: [PATCH] CustomAssetLibrary: Add virtual destructor This is used as a base pointer inside CustomPipelineAction, so this should probably really have a virtual destructor to ensure derived objects are torn down properly. --- Source/Core/VideoCommon/Assets/CustomAssetLibrary.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/VideoCommon/Assets/CustomAssetLibrary.h b/Source/Core/VideoCommon/Assets/CustomAssetLibrary.h index 17b16f9fb9..282fad7473 100644 --- a/Source/Core/VideoCommon/Assets/CustomAssetLibrary.h +++ b/Source/Core/VideoCommon/Assets/CustomAssetLibrary.h @@ -31,6 +31,8 @@ public: CustomAssetLibrary::TimeType m_load_time = {}; }; + virtual ~CustomAssetLibrary() = default; + // Loads a texture, if there are no levels, bytes loaded will be empty virtual LoadInfo LoadTexture(const AssetID& asset_id, TextureData* data) = 0;