From: Jaemin Ahn Date: Tue, 30 Apr 2013 03:21:53 +0000 (+0900) Subject: Fix TCT error. X-Git-Tag: accepted/tizen/20130520.101532~10 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fframework%2Fnative%2Fnet.git;a=commitdiff_plain;h=00ce67ec19eaeaf82cca17af5624321d6d7a5471 Fix TCT error. Change-Id: Ia8737a8b74d5143fbae073a42f8b7eafc143fe7b Signed-off-by: Jaemin Ahn --- 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; }