Minor reduction of code duplication
Minor code reduction
Removed some code duplication.
Allocate the struct 'tilda_window' on the stack of 'main()'.

Apart from the (minor) benefit of avoiding a heap allocation,
this removes a bit of the necessary error handling.
Merge branch 'Ed-von-Schleck-allocate_tilda_window_on_stack'

 * Fixes #46