]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
support for unicode font names
[wxWidgets.git] / src / common / sckaddr.cpp
index 86a440f0090f2f31f5614dc120363879ec4de02d..b8a96b2f5f471afa902555a560147459973fe123 100644 (file)
@@ -82,8 +82,11 @@ wxSockAddress::~wxSockAddress()
 
 void wxSockAddress::SetAddress(GAddress *address)
 {
-  GAddress_destroy(m_address);
-  m_address = GAddress_copy(address);
+    if ( address != m_address )
+    {
+        GAddress_destroy(m_address);
+        m_address = GAddress_copy(address);
+    }
 }
 
 wxSockAddress& wxSockAddress::operator=(const wxSockAddress& addr)