summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:03:14 +0000
committerfcolin2007-02-01 13:03:14 +0000
commit433eba8cb7b07be040c605d4aa59e9c0804c1614 (patch)
tree67b14bf8418fa068fc3a461f182ee93fcf8cb662
parent3641d48cb887cf7267a6e138c1b2827510d2df5d (diff)
downloadivy-cplusplus-433eba8cb7b07be040c605d4aa59e9c0804c1614.zip
ivy-cplusplus-433eba8cb7b07be040c605d4aa59e9c0804c1614.tar.gz
ivy-cplusplus-433eba8cb7b07be040c605d4aa59e9c0804c1614.tar.bz2
ivy-cplusplus-433eba8cb7b07be040c605d4aa59e9c0804c1614.tar.xz
Utilisateur : Fcolin Date : 5/11/02 Heure : 9:57 Archivé dans $/Bus/Ivy Commentaire: (vss 8)
-rw-r--r--Bus/Ivy/IvySynchroWnd.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Bus/Ivy/IvySynchroWnd.cxx b/Bus/Ivy/IvySynchroWnd.cxx
index e2b2338..cabe92c 100644
--- a/Bus/Ivy/IvySynchroWnd.cxx
+++ b/Bus/Ivy/IvySynchroWnd.cxx
@@ -117,6 +117,11 @@ IvySynchronousMessageCallback::IvySynchronousMessageCallback( IvyMessageCallback
IvySynchronousMessageCallback::~IvySynchronousMessageCallback()
{
//delete target;
+ for( int i = 0; i < argc ; i++ )
+ {
+ delete argv[i];
+ }
+ if ( argv ) delete argv;
}
void IvySynchronousMessageCallback::OnMessage(IvyApplication *app, int argc, const char **argv )
{
@@ -128,8 +133,7 @@ void IvySynchronousMessageCallback::OnMessage(IvyApplication *app, int argc, con
param->argv = new char*[argc];
for( int i = 0; i < argc ; i++ )
{
- param->argv[i] = new char[ strlen( argv[i]) +1 ];
- strcpy( param->argv[i], argv[i]);
+ param->argv[i] = strdup( argv[i]);
}
// TRACE( "IvySynchronousMessageCallback::OnMessage msg count %d\n",wParam);
m_synchro->PostIvyCB( param );