Skip to content
Snippets Groups Projects
Commit 54fa1ed0 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

shut down ORB before returning from main.cpp

parent 34025101
No related branches found
No related tags found
No related merge requests found
isEmpty(CUMBIA_ROOT) {
CUMBIA_ROOT=/runtime
}
isEmpty(CUMBIA_ROOT) {
CUMBIA_ROOT=/usr/local/cumbia-libs
}
include($${CUMBIA_ROOT}/include/quapps/quapps.pri)
CONFIG += debug
......
......@@ -8,6 +8,10 @@
#include <qthreadseventbridgefactory.h>
// cumbia
#ifdef QUMBIA_TANGO_CONTROLS_VERSION
#include <cutango-world.h>
#endif
#define VERSION "1.0"
int main(int argc, char *argv[])
......@@ -35,9 +39,15 @@ int main(int argc, char *argv[])
p = a->cu_pool();
delete w;
for(const std::string& n : p->names())
if(p->get(n))
for(const std::string& n : p->names()) {
if(p->get(n)) {
printf("main.cpp : \e[1;35mdeleting '%s'\e[0m\n", n.c_str());
delete p->get(n);
}
}
#ifdef QUMBIA_TANGO_CONTROLS_VERSION
printf("main.cpp: shutting down the ORB\n");
CuTangoWorld().orb_cleanup();
#endif
return ret;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment