From: Manuel Nickschas Date: Wed, 5 Sep 2018 18:58:46 +0000 (+0200) Subject: clang-tidy: Avoid memory leak in MainWin X-Git-Tag: 0.13-rc2~38 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=bfeb38f1572e44bdfbfb7f4d47d6dc6ecc20439f;hp=bfeb38f1572e44bdfbfb7f4d47d6dc6ecc20439f clang-tidy: Avoid memory leak in MainWin This one is legitimate: If no network is selected, the freshly created ChannelListDlg instance is never deleted. Move instantiation after the network ID check, so the dialog is shown (and self-deletes on close). Set a parent for good measure, too. ---