From f8b1df0b15f843b8f47efb9bee38f1de0fa95020 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 11 Jan 2008 22:46:26 +0000 Subject: [PATCH] fixed memory leak in wxXmlResource introduced when fixing wxVector<> usage (patch #1869602) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xmlres.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 365a721f1d..ab9ebb4682 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -235,6 +235,7 @@ bool wxXmlResource::Unload(const wxString& filename) { if ( (*i)->File == fnd ) { + delete *i; Data().erase(i); unloaded = true; -- 2.45.2