From 64646f0bfeb28a417d3ba3e24cf6584d35c00e09 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 26 Aug 2024 23:25:58 +0800 Subject: [PATCH] [saco] Implement/match CUnkClass13 destructor --- saco/unkclass13.cpp | 5 +++++ saco/unkclass13.h | 1 + 2 files changed, 6 insertions(+) diff --git a/saco/unkclass13.cpp b/saco/unkclass13.cpp index 768e26b..abf102f 100644 --- a/saco/unkclass13.cpp +++ b/saco/unkclass13.cpp @@ -12,6 +12,11 @@ CUnkClass13::CUnkClass13(IDirect3DDevice9 *pD3DDevice) RestoreDeviceObjects(); } +CUnkClass13::~CUnkClass13() +{ + DeleteDeviceObjects(); +} + void CUnkClass13::DeleteDeviceObjects() { SAFE_RELEASE(m_pD3DSurface); diff --git a/saco/unkclass13.h b/saco/unkclass13.h index c6fa12e..9a5887a 100644 --- a/saco/unkclass13.h +++ b/saco/unkclass13.h @@ -13,6 +13,7 @@ private: public: CUnkClass13(IDirect3DDevice9 *pD3DDevice); + ~CUnkClass13(); void DeleteDeviceObjects(); void RestoreDeviceObjects();