]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.cpp
safe destruction, even if redraws might be triggered
[wxWidgets.git] / src / unix / gsocket.cpp
index 33785cc31f93aff3bff0fe5796cee6c673c339ea..28bbb981941fa3c88dfcfd70f23e7726b0889720 100644 (file)
@@ -1404,7 +1404,7 @@ void GSocketBSD::Detected_Write()
 /* Compatibility functions for GSocket */
 GSocket *GSocket_new(void)
 {
-    GSocket *newsocket = wxTheApp->GetTraits()->CreateGSocket();
+    GSocket *newsocket = new GSocketBSDGUIShim();
     if(newsocket->IsOk())
         return newsocket;
     delete newsocket;