Fix memory leak with global variables in options opener window
(#3)