From 4a025df5d30527df76895f23717f4f99f5359301 Mon Sep 17 00:00:00 2001 From: ptv Date: Tue, 4 Jul 2006 12:54:27 +0000 Subject: [PATCH] remove memory leak on myResources QPtrList --- src/Qtx/QtxResourceMgr.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Qtx/QtxResourceMgr.cxx b/src/Qtx/QtxResourceMgr.cxx index f53df0c55..d5b3e3a6f 100644 --- a/src/Qtx/QtxResourceMgr.cxx +++ b/src/Qtx/QtxResourceMgr.cxx @@ -879,6 +879,9 @@ QtxResourceMgr::~QtxResourceMgr() QStringList prefList = myTranslator.keys(); for ( QStringList::const_iterator it = prefList.begin(); it != prefList.end(); ++it ) removeTranslators( *it ); + for ( ResListIterator it( myResources ); it.current(); ++it ) + delete it.current(); + myResources.clear(); } /*! -- 2.39.2