win32ipc: Fix pipe handle leak

Named pipe handle must be closed if it's no longer needed

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2923
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5231>
This commit is contained in:
Seungha Yang 2023-08-23 18:07:31 +09:00 committed by Tim-Philipp Müller
parent 4740a91e00
commit adea0b45f7

View file

@ -449,6 +449,9 @@ out:
self->conn.clear ();
if (pipe != INVALID_HANDLE_VALUE)
CloseHandle (pipe);
lk.lock ();
CloseHandle (overlap.hEvent);
self->last_err = ERROR_OPERATION_ABORTED;