Without this change, scan-build warns that the address of stack variable "gui" is being stored in a global variable.