]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utilsexc.cpp
fix memory leak of wxMessageOutput if wxApp::OnInit() returned false
[wxWidgets.git] / src / msw / utilsexc.cpp
index 4eed50125a3a1eb0cf2a2ea42e3fbb08f5057fa7..c7fa039d3a279ee8c1d5fe309a83f69ca847d8bd 100644 (file)
@@ -483,16 +483,16 @@ size_t wxPipeOutputStream::OnSysWrite(const void *buffer, size_t len)
 #if wxUSE_IPC
 
 // connect to the given server via DDE and ask it to execute the command
-static bool wxExecuteDDE(const wxString& ddeServer,
-                         const wxString& ddeTopic,
-                         const wxString& ddeCommand)
+bool
+wxExecuteDDE(const wxString& ddeServer,
+             const wxString& ddeTopic,
+             const wxString& ddeCommand)
 {
     bool ok wxDUMMY_INITIALIZE(false);
 
     wxDDEClient client;
-    wxConnectionBase *conn = client.MakeConnection(wxEmptyString,
-                                                   ddeServer,
-                                                   ddeTopic);
+    wxConnectionBase *
+        conn = client.MakeConnection(wxEmptyString, ddeServer, ddeTopic);
     if ( !conn )
     {
         ok = false;