PMGLauncher: temporary variables are referenced beyond their lifetime