[UI] Fix target tab under AprilTag (#478)

* Start addressing things

* Fix target tab table

* Update TrackedTarget.java
This commit is contained in:
Matt
2022-09-29 12:28:11 -04:00
committed by GitHub
parent a764ace7f2
commit 4b4a0a1cd9
4 changed files with 14 additions and 22 deletions

View File

@@ -196,8 +196,12 @@ public class TrackedTarget implements Releasable {
@Override
public void release() {
m_mainContour.release();
for (var sc : m_subContours) {
sc.release();
// TODO how can this check fail?
if (m_subContours != null) {
for (var sc : m_subContours) {
sc.release();
}
}
if (m_cameraRelativeTvec != null) m_cameraRelativeTvec.release();