From 00ce67ec19eaeaf82cca17af5624321d6d7a5471 Mon Sep 17 00:00:00 2001 From: Jaemin Ahn Date: Tue, 30 Apr 2013 12:21:53 +0900 Subject: [PATCH] Fix TCT error. Change-Id: Ia8737a8b74d5143fbae073a42f8b7eafc143fe7b Signed-off-by: Jaemin Ahn --- src/FNetNetEndPoint.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/FNetNetEndPoint.cpp b/src/FNetNetEndPoint.cpp index 3f8a025..3ea8134 100644 --- a/src/FNetNetEndPoint.cpp +++ b/src/FNetNetEndPoint.cpp @@ -94,7 +94,22 @@ NetEndPoint::operator =(const NetEndPoint& rhs) return *this; } - __pNetEndPointImpl = rhs.__pNetEndPointImpl; + if (rhs.__pNetEndPointImpl != null) + { + if (__pNetEndPointImpl != null) + { + *__pNetEndPointImpl = *rhs.__pNetEndPointImpl; + } + else + { + __pNetEndPointImpl = new (std::nothrow) _NetEndPointImpl(*rhs.__pNetEndPointImpl); + } + } + else + { + delete __pNetEndPointImpl; + __pNetEndPointImpl = null; + } return *this; } -- 2.7.4