From 5b279e629d2a6b1192320d7dcf6ce5437d9bd95e Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Wed, 21 Oct 2009 13:06:41 +0000 Subject: [PATCH] GSdx: Fixed a memory leak in m_weavebob when changing interlacing modes (same thing that caused the m_merge leak -- I chose to delete instead of recycle since I doubt the texture would be useful for anything besides the 1-time interlacing setup, so no point cluttering the pool with it). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2051 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSDevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/GSdx/GSDevice.cpp b/plugins/GSdx/GSDevice.cpp index 7114b43ec0..1939fb4d9d 100644 --- a/plugins/GSdx/GSDevice.cpp +++ b/plugins/GSdx/GSDevice.cpp @@ -232,6 +232,7 @@ void GSDevice::Interlace(const GSVector2i& ds, int field, int mode, float yoffse { if(!m_weavebob || !(m_weavebob->GetSize() == ds)) { + delete m_weavebob; m_weavebob = CreateRenderTarget(ds.x, ds.y, false); }