Fork me on GitHub

Changeset 272 in svn


Ignore:
Timestamp:
Feb 16, 2009, 1:15:40 PM (16 years ago)
Author:
Xavier Rouby
Message:

memory-leak free

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Examples/Analysis_Ex.cpp

    r260 r272  
    5454{
    5555  int appargc = 2;
    56   char *appargv[] = {"Analysis_Ex", "-b"};
    57   TApplication app("Analysis_Ex", &appargc, appargv);
     56  char *appName= new char[20];
     57  char *appOpt= new char[20];
     58  sprintf(appName,"Analysis_Ex");
     59  sprintf(appOpt,"-b");
     60  char *appargv[] = {appName,appOpt};
     61  TApplication app(appName, &appargc, appargv);
     62  delete [] appName;
     63  delete [] appOpt;
    5864
    5965  if(argc !=3)
Note: See TracChangeset for help on using the changeset viewer.