TFile::Open ownership

Hello, I cannot find documentation about the ownership of the returned pointer by TFile::Open. Do I have do delete manually the returned TFile?

Hi,

The pointer returned to TFile::Open is co-owned by the caller (you) and gROOT. When you delete it explicitly it will be removed from gROOT. The reference is gROOT is to insure that all files are properly closed at the end of the process.

Cheers,
Philippe.