diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-20 22:33:39 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-20 22:33:39 +0200 |
commit | 5dbc69fb16c71c02859ec8665c55a1e2b068ddd7 (patch) | |
tree | fff83e32bf9687c1b0c7203456ed37ab8cba09b8 /apps/apps.cpp | |
parent | f085ec61273a5fa680c337d0ae7d5a85294aaeba (diff) | |
download | ble-toys-5dbc69fb16c71c02859ec8665c55a1e2b068ddd7.tar.gz ble-toys-5dbc69fb16c71c02859ec8665c55a1e2b068ddd7.tar.bz2 ble-toys-5dbc69fb16c71c02859ec8665c55a1e2b068ddd7.tar.xz ble-toys-5dbc69fb16c71c02859ec8665c55a1e2b068ddd7.zip |
o Adding an application to send samples over MQTT.
o Improved CMake build script, better detection and error messages of headers/libraries. Conditionally adding the applications that can be compiled with the given set of found libraries.
Diffstat (limited to 'apps/apps.cpp')
-rw-r--r-- | apps/apps.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/apps.cpp b/apps/apps.cpp index 5ff8bf1..b21d27e 100644 --- a/apps/apps.cpp +++ b/apps/apps.cpp @@ -3,10 +3,6 @@ #include <log4cplus/hierarchy.h> #include <boost/program_options.hpp> #include <netdb.h> -#include <stdlib.h> -#include <string.h> -#include <sys/socket.h> -#include <unistd.h> namespace trygvis { namespace apps { @@ -105,7 +101,11 @@ int launch_app(app *app, int argc, const char *argv[]) { app_execution execution(all, vm, logger); - return app->main(execution); + int ret = app->main(execution); + + delete app; + + return ret; } catch (po::required_option &e) { cerr << "Missing required option: " << e.get_option_name() << endl; cerr << all << endl; |