Is it erroneous to class TCanvas while coding in c++ (I mean not in ROOT platform), since no graphic window is going to show up? And in this end c1.Close() causes memory leak.
definitely lost: 4 bytes in 1 blocks
If we don’t close TCanvas, however, when is it going out of scope so that foo.Draw() can not longer be used? Is it a good practice to leave TCanvas “on” until the end of a function?