]> git.saurik.com Git - wxWidgets.git/commitdiff
some fixes in TestSocketServer()
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Mar 2000 01:04:50 +0000 (01:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Mar 2000 01:04:50 +0000 (01:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/console/console.cpp
samples/sashtest/sashtest.cpp

index 600939b3cb0c3b64c9f28a89166e782022240b55..58d11022cf4da42d2226dd4488f733bfd43e8f9f 100644 (file)
@@ -785,6 +785,8 @@ static void TestSocketServer()
 
         delete socket;
     }
+
+    delete server;
 }
 
 static void TestSocketClient()
@@ -2606,9 +2608,9 @@ int main(int argc, char **argv)
 #endif // TEST_MIME
 
 #ifdef TEST_SOCKETS
-    if ( 1 )
-        TestSocketServer();
     if ( 0 )
+        TestSocketServer();
+    if ( 1 )
     {
         TestSocketClient();
         TestProtocolFtp();
index d5f42bacd484920eaca4ee829055fe2e2e3eb2a8..128f20e49576ef124ba70a001739ec7cb2eea747 100644 (file)
@@ -282,7 +282,9 @@ void MyCanvas::OnDraw(wxDC& dc)
   dc.DrawRoundedRectangle(150, 150, 100, 50, 20);
 
   dc.DrawEllipse(250, 250, 100, 50);
+#if wxUSE_SPLINES
   dc.DrawSpline(50, 200, 50, 100, 200, 10);
+#endif // wxUSE_SPLINES
   dc.DrawLine(50, 230, 200, 230);
   dc.DrawText("This is a test string", 50, 230);