From Andrei Gheata: a fix for a leak in TFileMerger.cxx that affect all objects that have a custom Merge function. These were never deleted (except the first that contains the final merged info), causing huge leaks in case of files with collections inside. The patch: - deletes all objects retrieved from file - in case of collections, it calls collection->Delete() to clean-up also the components. This is of course not recursive so it still leaks in case of collections of collections (maybe a TCollection::SetOwnerRecursive() would help) - changed a bit the merging sequence for objects with custom Merge(): instead of merging in one go and cleanup at the end, now the merging is done with one object only which is cleaned-up immediately after. That makes possible merging of huge files with lists inside.
From Andrei Gheata:
a fix for a leak in TFileMerger.cxx that affect all objects that have a custom Merge function. These were never deleted (except the first that contains the final merged info), causing huge leaks in case of files with collections inside. The patch:
- deletes all objects retrieved from file
- in case of collections, it calls collection->Delete() to clean-up also the components. This is of course not recursive so it still leaks in case of collections of collections (maybe a TCollection::SetOwnerRecursive() would help)
- changed a bit the merging sequence for objects with custom Merge(): instead of merging in one go and cleanup at the end, now the merging is done with one object only which is cleaned-up immediately after. That makes possible merging of huge files with lists inside.


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@28880 27541ba8-7e3a-0410-8455-c3a389f83636

jrtomps/root,zzxuanyuan/root,davidlt/root,bbockelm/root,sbinet/cxx-root,pspe/root,0x0all/ROOT,0x0all/ROOT,cxx-hep/root-cern,omazapa/root,sbinet/cxx-root,Y--/root,zzxuanyuan/root,simonpf/root,beniz/root,bbockelm/root,cxx-hep/root-cern,perovic/root,veprbl/root,0x0all/ROOT,esakellari/root,georgtroska/root,jrtomps/root,0x0all/ROOT,omazapa/root,veprbl/root,sirinath/root,CristinaCristescu/root,mattkretz/root,gganis/root,lgiommi/root,vukasinmilosevic/root,georgtroska/root,strykejern/TTreeReader,davidlt/root,mhuwiler/rootauto,gbitzes/root,satyarth934/root,lgiommi/root,smarinac/root,Duraznos/root,nilqed/root,strykejern/TTreeReader,sawenzel/root,sbinet/cxx-root,arch1tect0r/root,satyarth934/root,root-mirror/root,tc3t/qoot,gbitzes/root,alexschlueter/cern-root,cxx-hep/root-cern,krafczyk/root,karies/root,smarinac/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,pspe/root,cxx-hep/root-cern,vukasinmilosevic/root,bbockelm/root,mhuwiler/rootauto,perovic/root,abhinavmoudgil95/root,mhuwiler/rootauto,olifre/root,satyarth934/root,mhuwiler/rootauto,kirbyherm/root-r-tools,beniz/root,mhuwiler/rootauto,sbinet/cxx-root,sawenzel/root,kirbyherm/root-r-tools,esakellari/my_root_for_test,kirbyherm/root-r-tools,nilqed/root,alexschlueter/cern-root,abhinavmoudgil95/root,karies/root,mattkretz/root,bbockelm/root,BerserkerTroll/root,pspe/root,BerserkerTroll/root,buuck/root,abhinavmoudgil95/root,Duraznos/root,Y--/root,beniz/root,krafczyk/root,mattkretz/root,root-mirror/root,olifre/root,mhuwiler/rootauto,BerserkerTroll/root,lgiommi/root,krafczyk/root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,dfunke/root,pspe/root,arch1tect0r/root,agarciamontoro/root,mkret2/root,gganis/root,tc3t/qoot,jrtomps/root,mattkretz/root,alexschlueter/cern-root,abhinavmoudgil95/root,sawenzel/root,davidlt/root,georgtroska/root,evgeny-boger/root,abhinavmoudgil95/root,Duraznos/root,mattkretz/root,dfunke/root,krafczyk/root,ffurano/root5,alexschlueter/cern-root,sirinath/root,cxx-hep/root-cern,simonpf/root,sawenzel/root,BerserkerTroll/root,dfunke/root,CristinaCristescu/root,evgeny-boger/root,esakellari/my_root_for_test,nilqed/root,esakellari/my_root_for_test,vukasinmilosevic/root,buuck/root,smarinac/root,bbockelm/root,cxx-hep/root-cern,omazapa/root,0x0all/ROOT,zzxuanyuan/root-compressor-dummy,tc3t/qoot,esakellari/my_root_for_test,perovic/root,perovic/root,dfunke/root,karies/root,sirinath/root,olifre/root,thomaskeck/root,esakellari/my_root_for_test,CristinaCristescu/root,veprbl/root,strykejern/TTreeReader,alexschlueter/cern-root,omazapa/root,zzxuanyuan/root,buuck/root,mattkretz/root,jrtomps/root,agarciamontoro/root,nilqed/root,strykejern/TTreeReader,esakellari/root,mhuwiler/rootauto,perovic/root,Y--/root,veprbl/root,arch1tect0r/root,thomaskeck/root,Duraznos/root,nilqed/root,thomaskeck/root,bbockelm/root,pspe/root,satyarth934/root,gganis/root,gganis/root,thomaskeck/root,beniz/root,gganis/root,0x0all/ROOT,Y--/root,Dr15Jones/root,gbitzes/root,thomaskeck/root,thomaskeck/root,tc3t/qoot,BerserkerTroll/root,bbockelm/root,perovic/root,abhinavmoudgil95/root,satyarth934/root,omazapa/root-old,beniz/root,alexschlueter/cern-root,thomaskeck/root,agarciamontoro/root,davidlt/root,simonpf/root,Duraznos/root,sawenzel/root,arch1tect0r/root,evgeny-boger/root,omazapa/root-old,davidlt/root,dfunke/root,gbitzes/root,nilqed/root,simonpf/root,evgeny-boger/root,BerserkerTroll/root,buuck/root,krafczyk/root,Y--/root,sirinath/root,strykejern/TTreeReader,jrtomps/root,mattkretz/root,esakellari/my_root_for_test,cxx-hep/root-cern,vukasinmilosevic/root,omazapa/root-old,agarciamontoro/root,buuck/root,Dr15Jones/root,root-mirror/root,Y--/root,ffurano/root5,CristinaCristescu/root,omazapa/root-old,vukasinmilosevic/root,perovic/root,georgtroska/root,Duraznos/root,veprbl/root,root-mirror/root,sirinath/root,georgtroska/root,mattkretz/root,karies/root,buuck/root,sirinath/root,nilqed/root,veprbl/root,Duraznos/root,karies/root,krafczyk/root,kirbyherm/root-r-tools,CristinaCristescu/root,tc3t/qoot,nilqed/root,gganis/root,dfunke/root,veprbl/root,nilqed/root,BerserkerTroll/root,Y--/root,satyarth934/root,smarinac/root,mkret2/root,sirinath/root,pspe/root,mkret2/root,olifre/root,esakellari/root,omazapa/root,arch1tect0r/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,buuck/root,veprbl/root,zzxuanyuan/root,karies/root,arch1tect0r/root,sawenzel/root,georgtroska/root,CristinaCristescu/root,zzxuanyuan/root-compressor-dummy,olifre/root,karies/root,gbitzes/root,krafczyk/root,ffurano/root5,jrtomps/root,satyarth934/root,simonpf/root,sirinath/root,georgtroska/root,smarinac/root,gganis/root,davidlt/root,esakellari/my_root_for_test,sbinet/cxx-root,omazapa/root,agarciamontoro/root,gbitzes/root,satyarth934/root,mkret2/root,BerserkerTroll/root,abhinavmoudgil95/root,BerserkerTroll/root,arch1tect0r/root,zzxuanyuan/root-compressor-dummy,karies/root,simonpf/root,dfunke/root,davidlt/root,jrtomps/root,agarciamontoro/root,pspe/root,ffurano/root5,arch1tect0r/root,omazapa/root-old,simonpf/root,mkret2/root,CristinaCristescu/root,lgiommi/root,smarinac/root,sawenzel/root,satyarth934/root,jrtomps/root,pspe/root,tc3t/qoot,root-mirror/root,sirinath/root,bbockelm/root,Y--/root,omazapa/root,davidlt/root,beniz/root,olifre/root,Duraznos/root,root-mirror/root,esakellari/root,root-mirror/root,agarciamontoro/root,beniz/root,krafczyk/root,sbinet/cxx-root,lgiommi/root,mkret2/root,evgeny-boger/root,Y--/root,esakellari/root,agarciamontoro/root,evgeny-boger/root,evgeny-boger/root,lgiommi/root,evgeny-boger/root,agarciamontoro/root,karies/root,evgeny-boger/root,Dr15Jones/root,CristinaCristescu/root,Y--/root,dfunke/root,vukasinmilosevic/root,abhinavmoudgil95/root,esakellari/my_root_for_test,vukasinmilosevic/root,vukasinmilosevic/root,CristinaCristescu/root,dfunke/root,davidlt/root,0x0all/ROOT,sbinet/cxx-root,gbitzes/root,dfunke/root,omazapa/root-old,0x0all/ROOT,esakellari/root,sbinet/cxx-root,gbitzes/root,Dr15Jones/root,sawenzel/root,zzxuanyuan/root,omazapa/root-old,bbockelm/root,vukasinmilosevic/root,simonpf/root,sawenzel/root,olifre/root,zzxuanyuan/root,jrtomps/root,pspe/root,agarciamontoro/root,abhinavmoudgil95/root,esakellari/root,gbitzes/root,gganis/root,mkret2/root,omazapa/root,simonpf/root,tc3t/qoot,mattkretz/root,perovic/root,nilqed/root,abhinavmoudgil95/root,mkret2/root,veprbl/root,strykejern/TTreeReader,BerserkerTroll/root,olifre/root,zzxuanyuan/root,simonpf/root,esakellari/my_root_for_test,ffurano/root5,lgiommi/root,root-mirror/root,perovic/root,tc3t/qoot,vukasinmilosevic/root,omazapa/root-old,mkret2/root,strykejern/TTreeReader,buuck/root,krafczyk/root,smarinac/root,mkret2/root,karies/root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,bbockelm/root,beniz/root,thomaskeck/root,root-mirror/root,thomaskeck/root,kirbyherm/root-r-tools,olifre/root,smarinac/root,sirinath/root,zzxuanyuan/root,zzxuanyuan/root,esakellari/root,georgtroska/root,gbitzes/root,arch1tect0r/root,zzxuanyuan/root-compressor-dummy,bbockelm/root,esakellari/root,cxx-hep/root-cern,georgtroska/root,abhinavmoudgil95/root,sbinet/cxx-root,dfunke/root,Y--/root,smarinac/root,beniz/root,esakellari/root,Duraznos/root,arch1tect0r/root,evgeny-boger/root,agarciamontoro/root,sirinath/root,omazapa/root,thomaskeck/root,zzxuanyuan/root-compressor-dummy,arch1tect0r/root,satyarth934/root,olifre/root,tc3t/qoot,omazapa/root,kirbyherm/root-r-tools,buuck/root,veprbl/root,esakellari/my_root_for_test,omazapa/root-old,vukasinmilosevic/root,Duraznos/root,pspe/root,Duraznos/root,lgiommi/root,sawenzel/root,omazapa/root-old,gbitzes/root,nilqed/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root-compressor-dummy,CristinaCristescu/root,zzxuanyuan/root,0x0all/ROOT,lgiommi/root,satyarth934/root,pspe/root,georgtroska/root,BerserkerTroll/root,perovic/root,jrtomps/root,olifre/root,veprbl/root,evgeny-boger/root,perovic/root,Dr15Jones/root,davidlt/root,jrtomps/root,georgtroska/root,sbinet/cxx-root,zzxuanyuan/root,gganis/root,esakellari/root,Dr15Jones/root,omazapa/root-old,Dr15Jones/root,mhuwiler/rootauto,CristinaCristescu/root,mhuwiler/rootauto,ffurano/root5,sawenzel/root,sbinet/cxx-root,alexschlueter/cern-root,mattkretz/root,mkret2/root,karies/root,krafczyk/root,smarinac/root,lgiommi/root,buuck/root,mattkretz/root,root-mirror/root,ffurano/root5,kirbyherm/root-r-tools,beniz/root,beniz/root,gganis/root,simonpf/root,davidlt/root,root-mirror/root,lgiommi/root,buuck/root,krafczyk/root,omazapa/root,gganis/root