The source project of this merge request has been removed.
fix: fix memory leak in devicesRemoved()
Move the delete currentDevice call before currentDevice = nullptr in devicesRemoved() method to ensure proper memory deallocation. The original code deleted the object after setting the pointer to nullptr, which would cause a memory leak.
- Move delete currentDevice before currentDevice = nullptr
- Keep other logic unchanged