From 374ccafa73038c28124e54bfd8d1a9a90bcdea77 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 13 Mar 2022 13:34:37 -0700 Subject: [PATCH] softgpu: Plug bad leak of bin queue data. --- GPU/Software/SoftGpu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GPU/Software/SoftGpu.cpp b/GPU/Software/SoftGpu.cpp index 3e22b7b7f0..b0f313a749 100644 --- a/GPU/Software/SoftGpu.cpp +++ b/GPU/Software/SoftGpu.cpp @@ -472,9 +472,8 @@ SoftGPU::~SoftGPU() { fbTex = nullptr; } - if (presentation_) { - delete presentation_; - } + delete presentation_; + delete drawEngine_; Sampler::Shutdown(); Rasterizer::Shutdown();