summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-10 16:05:50 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-10 16:05:50 +0100
commit4ac10163398f1cd402c7f8461ff478aadab5fe8e (patch)
tree4cb6b24df5523a8b099efc52b4b27cc56c1848ff
parent4b3064c63cd9fa112c3700d9e97d6571ff5ad044 (diff)
aruco: explicitly release camera to aid macosx brain damage
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index e063be62..b1b58dec 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -364,6 +364,10 @@ start:
if (frame.rows > 0)
videoWidget->update_image(frame);
}
+
+ camera->release();
+ camera.release();
+ camera = nullptr;
}
bool Tracker::GiveHeadPoseData(double *data)