glui: Fix potential memory leak
Merge pull request #1131 from lioncash/leak

glui: Fix potential memory leak