Fix TCT error.
authorJaemin Ahn <j.m.ahn@samsung.com>
Tue, 30 Apr 2013 03:21:53 +0000 (12:21 +0900)
committerJaemin Ahn <j.m.ahn@samsung.com>
Tue, 30 Apr 2013 03:21:53 +0000 (12:21 +0900)
Change-Id: Ia8737a8b74d5143fbae073a42f8b7eafc143fe7b
Signed-off-by: Jaemin Ahn <j.m.ahn@samsung.com>
src/FNetNetEndPoint.cpp

index 3f8a025..3ea8134 100644 (file)
@@ -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;
 }