Fix some memory leaks if SDDM is closed when a session is running
Merge pull request #162 from davidedmundson/memory_leaks

Fix some memory leaks if SDDM is closed when a session is running
Add version information

This variable will be useful when we need to reference sddm version.