summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--facetracknoir/tracker.h7
-rw-r--r--qfunctionconfigurator/functionconfig.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/facetracknoir/tracker.h b/facetracknoir/tracker.h
index 28f8dc99..24a22c16 100644
--- a/facetracknoir/tracker.h
+++ b/facetracknoir/tracker.h
@@ -125,6 +125,13 @@ public:
axes[Pitch] = new THeadPoseDOF("ry", "ry_alt", 90, 90, 90, 90);
axes[Roll] = new THeadPoseDOF("rz", "rz_alt", 180, 180, 180, 180);
}
+ ~HeadPoseData()
+ {
+ for (int i = 0; i < 6; i++)
+ {
+ delete axes[i];
+ }
+ }
};
#endif
diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h
index b6257df2..4f48096a 100644
--- a/qfunctionconfigurator/functionconfig.h
+++ b/qfunctionconfigurator/functionconfig.h
@@ -37,7 +37,7 @@ public:
//
FunctionConfig();
FunctionConfig(QString title, int intMaxInput, int intMaxOutput);
- virtual ~FunctionConfig();
+ ~FunctionConfig();
float getValue(float x);
bool getLastPoint(QPointF& point); // Get the last Point that was requested.