Properly init boolean variable and don't leak memory

Closes https://github.com/mate-desktop/mate-session-manager/pull/67