Skip to content

Commit

Permalink
revert buf delete
Browse files Browse the repository at this point in the history
  • Loading branch information
SippieCup committed Apr 21, 2020
1 parent 9d93ae6 commit 9d8e832
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions selfdrive/modeld/modeld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ int main(int argc, char **argv) {
if (buf == NULL) {
LOGW("visionstream get failed");
visionstream_destroy(&stream);
delete buf;
break;
}

Expand Down Expand Up @@ -234,7 +233,6 @@ int main(int argc, char **argv) {
printf("model process: %.2fms, from last %.2fms\n", mt2-mt1, mt1-last);
last = mt1;
}
delete buf;
}
visionbuf_free(&yuv_ion);
}
Expand Down

0 comments on commit 9d8e832

Please sign in to comment.