diff --git a/wpiutil/src/main/native/include/wpi/Synchronization.h b/wpiutil/src/main/native/include/wpi/Synchronization.h index 7b983221398..aa067662d31 100644 --- a/wpiutil/src/main/native/include/wpi/Synchronization.h +++ b/wpiutil/src/main/native/include/wpi/Synchronization.h @@ -407,7 +407,7 @@ class SignalObject final { } SignalObject& operator=(SignalObject&& rhs) { if (m_handle != 0) { - DestroySemaphore(m_handle); + DestroySignalObject(m_handle); } m_handle = rhs.m_handle; rhs.m_handle = 0;