==30642== Memcheck, a memory error detector.
==30642== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==30642== Using LibVEX rev 1658, a library for dynamic binary translation.
==30642== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==30642== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==30642== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==30642== For more details, rerun with: -v
==30642== 
==30642== My PID = 30642, parent PID = 19037.  Prog and args are:
==30642==    ./eventHandlerTest
==30642== 
==30642== Syscall param writev(vector[...]) points to uninitialised byte(s)
==30642==    at 0xC188B8: writev (in /lib/libc-2.5.so)
==30642==    by 0xD30A2D: (within /usr/lib/libX11.so.6.2.0)
==30642==    by 0xD3081E: _X11TransWritev (in /usr/lib/libX11.so.6.2.0)
==30642==    by 0xD36508: _XSend (in /usr/lib/libX11.so.6.2.0)
==30642==    by 0xD2742A: XQueryExtension (in /usr/lib/libX11.so.6.2.0)
==30642==    by 0xD1BD4A: XInitExtension (in /usr/lib/libX11.so.6.2.0)
==30642==    by 0x238C3F: XFixesFindDisplay (in /usr/lib/libXfixes.so.3.1.0)
==30642==    by 0x23769E: XFixesSetCursorName (in /usr/lib/libXfixes.so.3.1.0)
==30642==    by 0x22D8E6: XcursorImagesLoadCursor (in /usr/lib/libXcursor.so.1.0.2)
==30642==    by 0x230F79: XcursorTryShapeCursor (in /usr/lib/libXcursor.so.1.0.2)
==30642==    by 0xD0FCE1: XCreateGlyphCursor (in /usr/lib/libX11.so.6.2.0)
==30642==    by 0xD1016C: XCreateFontCursor (in /usr/lib/libX11.so.6.2.0)
==30642==  Address 0x7674690 is 256 bytes inside a block of size 16,384 alloc'd
==30642==    at 0x40046FF: calloc (vg_replace_malloc.c:279)
==30642==    by 0xD214A6: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==30642==    by 0x76A52DD: TGX11::OpenDisplay(char const*) (in /apps/cern/root-5.27.04/lib/libGX11.so)
==30642==    by 0x608CED8: TGClient::TGClient(char const*) (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x6186B83: TRootApplication::TRootApplication(char const*, int*, char**) (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x61A9094: TRootGuiFactory::CreateApplicationImp(char const*, int*, char**) (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x4151C8E: TApplication::InitializeGraphics() (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x4154065: TApplication::TApplication(char const*, int*, char**, void*, int) (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x8051D74: main (eventHandlerTest.cpp:41)
==30642== 
==30642== Invalid read of size 4
==30642==    at 0x57356DD: TCanvas::EnterLeave(TPad*, TObject*) (in /apps/cern/root-5.27.04/lib/libGpad.so)
==30642==    by 0x5739ED6: TCanvas::HandleInput(EEventType, int, int) (in /apps/cern/root-5.27.04/lib/libGpad.so)
==30642==    by 0x6199C03: TRootCanvas::HandleContainerMotion(Event_t*) (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x61A10A9: TRootContainer::HandleMotion(Event_t*) (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x60C95BD: TGFrame::HandleEvent(Event_t*) (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x608D33C: TGClient::HandleEvent(Event_t*) (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x608D68D: TGClient::ProcessOneEvent() (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x608D6FC: TGClient::HandleInput() (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x608D72F: TGInputHandler::Notify() (in /apps/cern/root-5.27.04/lib/libGui.so)
==30642==    by 0x4242EDC: TUnixSystem::DispatchOneEvent(bool) (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x41B36B0: TSystem::InnerLoop() (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x41B7380: TSystem::Run() (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==  Address 0x6EF0BF0 is 0 bytes inside a block of size 100 free'd
==30642==    at 0x4004CF1: operator delete(void*) (vg_replace_malloc.c:244)
==30642==    by 0x41A38C3: TStorage::ObjectDealloc(void*) (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x4182296: TObject::operator delete(void*) (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x516E46A: TGraph::~TGraph() (in /apps/cern/root-5.27.04/lib/libHist.so)
==30642==    by 0x41E8279: TCollection::GarbageCollect(TObject*) (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x41EF1A6: TList::Delete(char const*) (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642==    by 0x51E7D67: TMultiGraph::~TMultiGraph() (in /apps/cern/root-5.27.04/lib/libHist.so)
==30642==    by 0x805249C: PEventHandlerTest::SwitchGraph() (PEventHandlerTest.cpp:129)
==30642==    by 0x8052267: PEventHandlerTest::HandleCmdKey(int, int, int, TObject*) (PEventHandlerTest.cpp:108)
==30642==    by 0x8056979: G__PEventHandlerTestDict_274_0_3(G__value*, char const*, G__param*, int) (PEventHandlerTestDict.cpp:286)
==30642==    by 0x4833B9E: Cint::G__CallFunc::Execute(void*) (in /apps/cern/root-5.27.04/lib/libCint.so)
==30642==    by 0x41FDD0A: TCint::CallFunc_Exec(void*, void*) const (in /apps/cern/root-5.27.04/lib/libCore.so)
==30642== 
==30642== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 87 from 2)
==30642== malloc/free: in use at exit: 3,484,199 bytes in 72,209 blocks.
==30642== malloc/free: 204,308 allocs, 132,099 frees, 15,526,505 bytes allocated.
==30642== For counts of detected errors, rerun with: -v
==30642== searching for pointers to 72,209 not-freed blocks.
==30642== checked 8,510,996 bytes.
==30642== 
==30642== LEAK SUMMARY:
==30642==    definitely lost: 2,426 bytes in 41 blocks.
==30642==      possibly lost: 164,286 bytes in 3,612 blocks.
==30642==    still reachable: 3,317,487 bytes in 68,556 blocks.
==30642==         suppressed: 0 bytes in 0 blocks.
==30642== Use --leak-check=full to see details of leaked memory.
