Files
nearby/internal/platform
Aaron Yu b8627563a0 Fix bluetooth socket crash during release of resource
From the crash call stack, the app crashed at the line `windows_socket = nullptr;` This is because the previous line `windows_socket_.Close();` has already released all unmanaged resources associated with the StreamSocket object.

https://learn.microsoft.com/en-us/uwp/api/windows.networking.sockets.streamsocket.close?view=winrt-22621#remarks

By RAII, assigning `windows_socket_` to nullptr is equivalent to calling `delete` on the StreamSocket allocated on the heap again, which results in null pointer exception `Exception infoEXCEPTION_ACCESS_VIOLATION_READ @0x00000000` because it has already been released in the previous line by Close().

PiperOrigin-RevId: 508454142
2023-02-09 13:05:29 -08:00
..
2023-01-18 13:16:29 -08:00
2023-01-23 16:04:21 -08:00
2022-02-02 11:56:39 -08:00
2022-02-02 11:56:39 -08:00
2023-01-11 15:19:33 -08:00
2023-01-11 15:19:33 -08:00
2022-02-02 11:56:39 -08:00