mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +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/5231>
This commit is contained in:
parent
4740a91e00
commit
adea0b45f7
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue