that uninited pointer isnt around or as a consequence of launchGui, is it? your valgrind output says ''uninit'd value was created by a stack allocation'' main.cpp:30