From 6adfb0a1bcaba895493b3ef6dea74a45124e70cd Mon Sep 17 00:00:00 2001 From: rylek Date: Tue, 1 Mar 2011 11:54:18 +0000 Subject: [PATCH] .Web: fixed bug causing crash when calling Socket::Clear on a picked socket. git-svn-id: svn://ultimatepp.org/upp/trunk@3253 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Web/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Web/socket.h b/uppsrc/Web/socket.h index de63da6b5..6fc7fe15f 100644 --- a/uppsrc/Web/socket.h +++ b/uppsrc/Web/socket.h @@ -69,7 +69,7 @@ public: static void Init(); void Attach(One d) { data = d; data->sock = this; } - void Clear() { data->sock = NULL; data.Clear(); } + void Clear() { if(!data.IsPicked() && data) data->sock = NULL; data.Clear(); } bool IsOpen() const { return data && data->IsOpen(); }