mainwindow: free configuration at exit
As the configuration is indirectly allocated, it need to be explicitly freed.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>