Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 377d6ffa authored by Chris Manton's avatar Chris Manton
Browse files

Set rust_thread_ to nullptr after deletion

Bug: 193716128
Tag: #refactor
Test: gd/cert/run

Change-Id: Ifb173fa000b3885922cc208d6c8802a55d9d7a37
parent 26076b50
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ void MessageLoopThread::ShutDown() {
  {
    if (is_main_ && init_flags::gd_rust_is_enabled()) {
      delete rust_thread_;
      rust_thread_ = nullptr;
      thread_id_ = -1;
      linux_tid_ = -1;
      return;
+1 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ void MessageLoopThread::ShutDown() {
  {
    if (is_main_ && init_flags::gd_rust_is_enabled()) {
      delete rust_thread_;
      rust_thread_ = nullptr;
      thread_id_ = -1;
      linux_tid_ = -1;
      return;