diff options
author | fcolin | 2007-02-01 13:03:14 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:03:14 +0000 |
commit | 433eba8cb7b07be040c605d4aa59e9c0804c1614 (patch) | |
tree | 67b14bf8418fa068fc3a461f182ee93fcf8cb662 /Bus/Ivy/IvySynchroWnd.cxx | |
parent | 3641d48cb887cf7267a6e138c1b2827510d2df5d (diff) | |
download | ivy-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)
Diffstat (limited to 'Bus/Ivy/IvySynchroWnd.cxx')
-rw-r--r-- | Bus/Ivy/IvySynchroWnd.cxx | 8 |
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 );
|