Commits

Braden Obrzut committed 46d41b1

- Fixed: Crash when being the first player to join a chocolate doom server.

Comments (0)

Files changed (1)

src/plugins/chocolate-doom/chocolatedoomgamerunner.cpp

 	{
 		QString tmp;
 		CreateServerDialog *csd = new CreateServerDialog();
+		csd->setAttribute(Qt::WA_DeleteOnClose, false);
 		csd->makeSetupServerDialog(plugin());
 		if(csd->exec() == QDialog::Accepted)
 		{
 			csd->commandLineArguments(tmp, args);
+			delete csd;
 			return GameRunner::connectParameters(args, pf, iwadFound, connectPassword, wadTargetDirectory);
 		}
 		else
+		{
+			delete csd;
 			return false;
+		}
 	}
 	return true;
 }