X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fxapp%2Fxapp.cpp;h=cb14f2ec1471de2b79c04fa05ff65d95c3b2ebdc;hb=5a9d7c67d1ec1e4410995eae4b50f929396935f6;hp=02cea30cb007545cf1aeb6f3a11f630068a7599a;hpb=8cb3c6f5d5062b83f17a5739e0671490beb543de;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/xapp/xapp.cpp b/src/xapp/xapp.cpp index 02cea30..cb14f2e 100644 --- a/src/xapp/xapp.cpp +++ b/src/xapp/xapp.cpp @@ -54,8 +54,8 @@ If port is nil, then the default port is used (4560). */ -Xapp::Xapp( char* port, bool wait4table ) : Messenger( port, wait4table ) { - // what's left to do? +Xapp::Xapp( const char* port, bool wait4table ) : Messenger( port, wait4table ) { + // nothing to do; all handled in Messenger constructor } /* @@ -72,7 +72,6 @@ Xapp::~Xapp() { function won't return unless that listener crashes. */ void Xapp::Run( int nthreads ) { - int joined; // at end, number of threads joined back int i; std::thread** tinfo; // each thread we'll start @@ -87,6 +86,8 @@ void Xapp::Run( int nthreads ) { for( i = 0; i < nthreads - 1; i++ ) { // wait for others to stop tinfo[i]->join(); } + + delete tinfo; } /*