    std::signal(s, SIG_DFL);
    if (oldt.c_lflag) {
      tcsetattr(STDIN_FILENO, TCSANOW, &oldt);
    }
    if (replay) {
      replay->stop();
    }
    qApp->quit();
  }
  
  int getch() {
    int ch;
 
</s> remove Replay *replay = nullptr;
 </s> add  </s> remove   stop();
}

void Replay::stop() {
 </s> add  </s> remove   replay = new Replay(route, allow, block, nullptr, replay_flags, parser.value("data_dir"), &app);
 </s> add   Replay *replay = new Replay(route, allow, block, nullptr, replay_flags, parser.value("data_dir"), &app); </s> remove   void stop();
 </s> add 
    std::signal(s, SIG_DFL);
    if (oldt.c_lflag) {
      tcsetattr(STDIN_FILENO, TCSANOW, &oldt);
    }



    qApp->quit();
  }
  
  int getch() {
    int ch;
keep keep keep keep replace replace replace keep keep keep keep keep
 replay: fix segfault or hanging on quit (#23323) 
selfdrive/ui/replay/main.cc