Skip to content

Commit

Permalink
Check before we delete
Browse files Browse the repository at this point in the history
  • Loading branch information
silverchris committed Aug 1, 2022
1 parent 9cfc5ba commit f69d004
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/autoapp/autoapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,13 @@ int main(int argc, char *argv[]) {
// while (connected) {
// sleep(1);
// }
delete aapa;
delete videoManager;
delete httpManager;
if (checkAapaVersion()) {
delete aapa;

}else {
delete videoManager;
delete httpManager;
}
LOG(DEBUG) << "Calling app->stop()";
app->stop();
LOG(DEBUG) << "Stopping ioService";
Expand Down

0 comments on commit f69d004

Please sign in to comment.