aboutsummaryrefslogtreecommitdiff
path: root/apps/apps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/apps.cpp')
-rw-r--r--apps/apps.cpp10
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;