Skip to content

Commit 312bea6

Browse files
authored
Fix C++ recording tool clean up (#48)
1 parent 93376c3 commit 312bea6

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cpp/k4a/record.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,8 @@ int main(int argc, char *argv[]) {
249249
inputThread.join();
250250
}
251251

252+
// Close VIO
253+
session = nullptr;
254+
252255
return EXIT_SUCCESS;
253256
}

cpp/orbbec/record.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,5 +248,8 @@ int main(int argc, char *argv[]) {
248248
inputThread.join();
249249
}
250250

251+
// Close VIO
252+
session = nullptr;
253+
251254
return EXIT_SUCCESS;
252255
}

cpp/realsense/record.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,8 @@ int main(int argc, char** argv) {
202202
inputThread.join();
203203
}
204204

205+
// Close VIO
206+
session = nullptr;
207+
205208
return 0;
206209
}

0 commit comments

Comments
 (0)