mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
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/5228>
This commit is contained in:
parent
746d99b932
commit
f058eda798
1 changed files with 3 additions and 0 deletions
|
@ -464,6 +464,9 @@ out:
|
|||
|
||||
self->conn.clear ();
|
||||
|
||||
if (pipe != INVALID_HANDLE_VALUE)
|
||||
CloseHandle (pipe);
|
||||
|
||||
lk.lock ();
|
||||
CloseHandle (overlap.hEvent);
|
||||
self->last_err = ERROR_OPERATION_ABORTED;
|
||||
|
|
Loading…
Reference in a new issue