From 94e10d91ee3b343997cdb356b0632bcaea971c4e Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:45:46 +0800 Subject: [PATCH] [saco] Implement/match CUnkClass14 destructor --- saco/unkclass14.cpp | 5 +++++ saco/unkclass14.h | 1 + 2 files changed, 6 insertions(+) diff --git a/saco/unkclass14.cpp b/saco/unkclass14.cpp index 86bec7a..3aa39e4 100644 --- a/saco/unkclass14.cpp +++ b/saco/unkclass14.cpp @@ -10,6 +10,11 @@ CUnkClass14::CUnkClass14(IDirect3DDevice9 *pD3DDevice) RestoreDeviceObjects(); } +CUnkClass14::~CUnkClass14() +{ + DeleteDeviceObjects(); +} + void CUnkClass14::DeleteDeviceObjects() { SAFE_RELEASE(m_pD3DSprite2); diff --git a/saco/unkclass14.h b/saco/unkclass14.h index 0b0f23c..34d0bcd 100644 --- a/saco/unkclass14.h +++ b/saco/unkclass14.h @@ -10,6 +10,7 @@ private: public: CUnkClass14(IDirect3DDevice9 *pD3DDevice); + ~CUnkClass14(); void DeleteDeviceObjects(); void RestoreDeviceObjects();