Merge pull request #6600 from lioncash/leak DolphinQt2/MainWindow: Resolve a memory leak on systems with X11