From: ptv Date: Tue, 4 Jul 2006 12:54:27 +0000 (+0000) Subject: remove memory leak on myResources QPtrList X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a025df5d30527df76895f23717f4f99f5359301;p=modules%2Fgui.git remove memory leak on myResources QPtrList --- 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(); } /*!