[Rabbitus@localhost MyGuiD]$ valgrind --leak-check=full MyGui
==3380== Memcheck, a memory error detector for x86-linux.
==3380== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==3380== Using valgrind-2.4.0, a program supervision framework for x86-linux.
==3380== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==3380== For more details, rerun with: -v
==3380== 
==3380== Conditional jump or move depends on uninitialised value(s)
==3380==    at 0x870EF7: strstr (in /lib/libc-2.3.5.so)
==3380==    by 0xA5E6E7: __pthread_initialize_minimal (in /lib/libpthread-2.3.5.so)
==3380==    by 0xA5E297: (within /lib/libpthread-2.3.5.so)
==3380==    by 0xA5DE7F: (within /lib/libpthread-2.3.5.so)
==3380==    by 0x1B8F1B4A: call_init (in /lib/ld-2.3.5.so)
==3380==    by 0x1B8F1C6C: _dl_init (in /lib/ld-2.3.5.so)
==3380==    by 0x1B8E483E: (within /lib/ld-2.3.5.so)
------MyFrame::MyFrame------
------MyFrame::CreateMenuBar------
------MyFrame::CreateShutter------
------MyFrame::AddShutterItem------
------MyFrame::AddShutterItem------
------MyFrame::CreateShutterFrames------
------SubFrame::SubFrame------
------SubFrame::CreateShutterItemFrames------
------FrameA::FrameA------
------FrameA::CreateTabA------
------FrameA::CreateTabB------
------FrameB::FrameB------
------MyFrame::HideSubFrames------
------SubFrame::HideSubFrames------
------MyFrame::DoMenu------
------MyFrame::DoCloseWindow------
------MyFrame::~MyFrame------
------MyFrame::DeleteShutterFrames------
------SubFrame::~SubFrame------
------SubFrame::DeleteShutterItemFrames------
------FrameB::~FrameB------
------FrameA::~FrameA------
------FrameA::DeleteTabB------
------FrameA::DeleteTabA------
------MyFrame::DeleteShutter------
------MyFrame::DeleteMenuBar------
MyApp successfully terminated.
==3380== 
==3380== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 75 from 3)
==3380== malloc/free: in use at exit: 19110404 bytes in 32334 blocks.
==3380== malloc/free: 147020 allocs, 114686 frees, 35259504 bytes allocated.
==3380== For counts of detected errors, rerun with: -v
==3380== searching for pointers to 32334 not-freed blocks.
==3380== checked 21846652 bytes.
==3380== 
==3380== 
==3380== 49 bytes in 16 blocks are definitely lost in loss record 66 of 169
==3380==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==3380==    by 0x1C1DDD59: G__memfunc_para_setup (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C1DE00E: G__parse_parameter_link (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C1DE305: G__memfunc_setup (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1D18118D: G__cpp_setup_func3() (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D181251: G__cpp_setup_funcG__Gui1 (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D182901: G__cpp_setupG__Gui1 (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1C1C7788: G__call_setup_funcs (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1D1A289E: G__cpp_setup_initG__Gui1::G__cpp_setup_initG__Gui1() (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D19A194: __static_initialization_and_destruction_0(int, int) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D19A1CC: _GLOBAL__I__ZN4ROOT20GenerateInitInstanceEPK8TGClient (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D3021E9: (within /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380== 
==3380== 
==3380== 54 bytes in 3 blocks are definitely lost in loss record 67 of 169
==3380==    at 0x1B9095DA: operator new[](unsigned) (vg_replace_malloc.c:138)
==3380==    by 0x1BAA0B31: TROOT::GetClass(char const*, bool) const (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BAA0D99: TROOT::IgnoreInclude(char const*, char const*) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB05B1F: IgnoreInclude (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1C1CEAAA: G__loadfile (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C2145E8: G__loadsystemfile (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1BB085AB: TCint::Load(char const*, bool) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BAB9267: TSystem::Load(char const*, char const*, bool) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB98A79: TUnixSystem::Load(char const*, char const*, bool) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BA9D474: TROOT::LoadClass(char const*, char const*, bool) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BA88AB2: TPluginHandler::LoadPlugin() (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BA39ED9: TApplication::TApplication(char const*, int*, char**, void*, int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380== 
==3380== 
==3380== 96 bytes in 10 blocks are definitely lost in loss record 77 of 169
==3380==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==3380==    by 0x1C1B7395: G__savestring (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C1DE0DD: G__memfunc_setup (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1D18118D: G__cpp_setup_func3() (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D181251: G__cpp_setup_funcG__Gui1 (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D182901: G__cpp_setupG__Gui1 (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1C1C7788: G__call_setup_funcs (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1D1A289E: G__cpp_setup_initG__Gui1::G__cpp_setup_initG__Gui1() (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D19A194: __static_initialization_and_destruction_0(int, int) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D19A1CC: _GLOBAL__I__ZN4ROOT20GenerateInitInstanceEPK8TGClient (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D3021E9: (within /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1CFEEAD4: (within /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380== 
==3380== 
==3380== 112 (8 direct, 104 indirect) bytes in 1 blocks are definitely lost in loss record 78 of 169
==3380==    at 0x1B909C61: realloc (vg_replace_malloc.c:196)
==3380==    by 0x9E5D9C: (within /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x9E6CBC: (within /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x9E87D5: _XlcCreateLC (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x1D4092EC: _XlcDefaultLoader (in /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2)
==3380==    by 0x9EF37A: _XlcDynamicLoad (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x9C0ED2: _XOpenLC (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x9C118B: _XrmInitParseInfo (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x9AA15D: (within /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x9AF790: XrmGetStringDatabase (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x98F7FA: XGetDefault (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0xB392E9: _XcursorGetDisplayInfo (in /usr/X11R6/lib/libXcursor.so.1.0.2)
==3380== 
==3380== 
==3380== 168 bytes in 1 blocks are definitely lost in loss record 88 of 169
==3380==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==3380==    by 0xB37343: XcursorCursorsCreate (in /usr/X11R6/lib/libXcursor.so.1.0.2)
==3380==    by 0xB38833: XcursorImagesLoadCursors (in /usr/X11R6/lib/libXcursor.so.1.0.2)
==3380==    by 0xB38910: XcursorImagesLoadCursor (in /usr/X11R6/lib/libXcursor.so.1.0.2)
==3380==    by 0xB3B6DE: XcursorTryShapeCursor (in /usr/X11R6/lib/libXcursor.so.1.0.2)
==3380==    by 0x989D76: XCreateGlyphCursor (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x98A1F2: XCreateFontCursor (in /usr/X11R6/lib/libX11.so.6.2)
==3380==    by 0x1E34F773: TGX11::OpenDisplay(_XDisplay*) (in /home/Rabbitus/ROOT/root/lib/libGX11.so)
==3380==    by 0x1E34F8C3: TGX11::Init(void*) (in /home/Rabbitus/ROOT/root/lib/libGX11.so)
==3380==    by 0x1E348890: TGX11::OpenDisplay(char const*) (in /home/Rabbitus/ROOT/root/lib/libGX11.so)
==3380==    by 0x1D012D5E: TGClient::TGClient(char const*) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D0B86E9: TRootApplication::TRootApplication(char const*, int*, char**) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380== 
==3380== 
==3380== 311 (40 direct, 271 indirect) bytes in 1 blocks are definitely lost in loss record 96 of 169
==3380==    at 0x1B90939A: operator new(unsigned) (vg_replace_malloc.c:132)
==3380==    by 0x1BAA5611: TStorage::ObjectAlloc(unsigned) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BAA94F1: TString::Tokenize(TString const&) const (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB078DD: TCint::LoadLibraryMap() (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB05D2A: TCint::EnableAutoLoading() (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BA3A01F: TApplication::TApplication(char const*, int*, char**, void*, int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x8055565: main (MyGui.cxx:400)
==3380== 
==3380== 
==3380== 2176 bytes in 2 blocks are definitely lost in loss record 125 of 169
==3380==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==3380==    by 0x1C212E57: G__store_dictposition (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1BB05F6C: TCint::SaveContext() (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BA39FF3: TApplication::TApplication(char const*, int*, char**, void*, int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x8055565: main (MyGui.cxx:400)
==3380== 
==3380== 
==3380== 4896 bytes in 24 blocks are possibly lost in loss record 136 of 169
==3380==    at 0x1B90939A: operator new(unsigned) (vg_replace_malloc.c:132)
==3380==    by 0x1BAA5611: TStorage::ObjectAlloc(unsigned) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x8053009: TObject::operator new(unsigned) (TObject.h:154)
==3380==    by 0x1BC70871: ROOT::TQObjectInitBehavior::CreateClass(char const*, short, std::type_info const&, TVirtualIsAProxy*, void (*)(void*, TMemberInspector&, char*), char const*, char const*, int, int) const (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB20532: ROOT::TGenericClassInfo::GetClass() (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1D281466: TGContainer::Class() (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D00A773: TGViewPort::SetContainer(TGFrame*) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D010B9A: TGCanvas::SetContainer(TGFrame*) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D08A149: TGShutterItem::TGShutterItem(TGWindow const*, TGHotString*, int, unsigned) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x8053CC6: MyFrame::AddShutterItem(char const*, ShutterData_t*, int) (MyGui.cxx:239)
==3380==    by 0x80544CA: MyFrame::CreateShutter(TGCompositeFrame*) (MyGui.cxx:323)
==3380==    by 0x8054DE9: MyFrame::MyFrame(TGWindow const*, unsigned, unsigned) (MyGui.cxx:72)
==3380== 
==3380== 
==3380== 8608 bytes in 1 blocks are possibly lost in loss record 144 of 169
==3380==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==3380==    by 0x1C1DD954: G__memfunc_next (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C1DE37E: G__memfunc_setup (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C5D7E9F: G__cpp_setup_func4() (in /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380==    by 0x1C5D8580: G__cpp_setup_funcG__Hist (in /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380==    by 0x1C5D95C9: G__cpp_setupG__Hist (in /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380==    by 0x1C1C7788: G__call_setup_funcs (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C5EEF3E: G__cpp_setup_initG__Hist::G__cpp_setup_initG__Hist() (in /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380==    by 0x1C5EB270: __static_initialization_and_destruction_0(int, int) (in /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380==    by 0x1C5EB2A8: _GLOBAL__I__ZN4ROOT20GenerateInitInstanceEPK5TAxis (in /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380==    by 0x1C5F3601: (within /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380==    by 0x1C448AA0: (within /home/Rabbitus/ROOT/root/lib/libHist.so)
==3380== 
==3380== 
==3380== 170802 bytes in 4026 blocks are possibly lost in loss record 158 of 169
==3380==    at 0x1B9095DA: operator new[](unsigned) (vg_replace_malloc.c:138)
==3380==    by 0x1BAA6866: TStringRef::GetRep(int, int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BAA6E12: TString::TString(char const*) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BAE124E: TClassTable::Add(char const*, short, std::type_info const&, void (*)(), int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BAE12E0: ROOT::AddClass(char const*, short, std::type_info const&, void (*)(), int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB2066E: ROOT::TDefaultInitBehavior::Register(char const*, short, std::type_info const&, void (*)(), int) const (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB1F9CD: ROOT::TGenericClassInfo::Init(int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1BB1FBD4: ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::TInitBehavior const*, void (*)(), TVirtualIsAProxy*, int, int) (in /home/Rabbitus/ROOT/root/lib/libCore.so)
==3380==    by 0x1D2FA064: ROOT::GenerateInitInstance(TRootGuiFactory const*) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D2FA3ED: __static_initialization_and_destruction_0(int, int) (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D2FA99C: _GLOBAL__I__ZN4ROOT20GenerateInitInstanceEPK15TRootGuiFactory (in /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380==    by 0x1D3021E9: (within /home/Rabbitus/ROOT/root/lib/libGui.so)
==3380== 
==3380== 
==3380== 291716 (8608 direct, 283108 indirect) bytes in 1 blocks are definitely lost in loss record 159 of 169
==3380==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==3380==    by 0x1C1DD954: G__memfunc_next (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1C1DE37E: G__memfunc_setup (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1CEEAFAD: G__cpp_setup_func3() (in /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380==    by 0x1CEEB419: G__cpp_setup_funcG__Physics (in /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380==    by 0x1CEEBA99: G__cpp_setupG__Physics (in /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380==    by 0x1C1C7788: G__call_setup_funcs (in /home/Rabbitus/ROOT/root/lib/libCint.so)
==3380==    by 0x1CEF77B4: G__cpp_setup_initG__Physics::G__cpp_setup_initG__Physics() (in /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380==    by 0x1CEEFC0C: __static_initialization_and_destruction_0(int, int) (in /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380==    by 0x1CEEFC44: _GLOBAL__I__ZN4ROOT20GenerateInitInstanceEPK15TFeldmanCousins (in /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380==    by 0x1CEF8D05: (within /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380==    by 0x1CEA94FC: (within /home/Rabbitus/ROOT/root/lib/libPhysics.so)
==3380== 
==3380== LEAK SUMMARY:
==3380==    definitely lost: 11199 bytes in 35 blocks.
==3380==    indirectly lost: 283483 bytes in 1116 blocks.
==3380==      possibly lost: 184306 bytes in 4051 blocks.
==3380==    still reachable: 18631416 bytes in 27132 blocks.
==3380==         suppressed: 0 bytes in 0 blocks.
==3380== Reachable blocks (those to which a pointer was found) are not shown.
==3380== To see them, rerun with: --show-reachable=yes
[Rabbitus@localhost MyGuiD]$ 
