mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
WinHandle: Do not close handle on operator &
This is not a com pointer; it should not release/close the handle when an & operator is used, it should only return the handle value. Clearing is only used on assignment.
This commit is contained in:
parent
11b0fe122c
commit
1abcdd7f50
|
@ -44,8 +44,6 @@ public:
|
|||
|
||||
inline HANDLE* operator&()
|
||||
{
|
||||
Clear();
|
||||
handle = NULL;
|
||||
return &handle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue