]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
remove memory leak on myResources QPtrList
authorptv <ptv@opencascade.com>
Tue, 4 Jul 2006 12:54:27 +0000 (12:54 +0000)
committerptv <ptv@opencascade.com>
Tue, 4 Jul 2006 12:54:27 +0000 (12:54 +0000)
src/Qtx/QtxResourceMgr.cxx

index f53df0c5583e49edd01a0ce3e5f238b82da4892b..d5b3e3a6fe8e5189063a07924f09e36d8cf3e950 100644 (file)
@@ -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();
 }
 
 /*!