summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-13 21:36:10 +0000
committerrubidium <rubidium@openttd.org>2009-12-13 21:36:10 +0000
commit8b9a2218de1e291f3de5702c0ad2ddfdb1acb000 (patch)
tree405d83cc1afaa3e65866ffe070d0301ea038a979 /src/network
parente0393a3de1b8c7dddd7b5b86d17202469810e209 (diff)
downloadopenttd-8b9a2218de1e291f3de5702c0ad2ddfdb1acb000.tar.xz
(svn r18493) -Fix: don't access something after deleting it
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index a65544748..b91aa02f2 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -751,6 +751,7 @@ public:
if (!success) {
ShowErrorMessage(STR_CONTENT_ERROR_COULD_NOT_CONNECT, INVALID_STRING_ID, 0, 0);
delete this;
+ return;
}
this->InvalidateData();