From 181907de01deda1e3f2d6bd93754c85294587789 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 6 Jan 2025 16:49:56 -0800 Subject: [PATCH] [wpiutil] SignalObject: Fix move operator= --- wpiutil/src/main/native/include/wpi/Synchronization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;