Skip to content

Commit

Permalink
fix: potential double free in utils #19
Browse files Browse the repository at this point in the history
  • Loading branch information
mrob95 committed Apr 30, 2023
1 parent a2063d2 commit aceba54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycaw/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def EndpointVolume(self):
iface = self._dev.Activate(
IAudioEndpointVolume._iid_, comtypes.CLSCTX_ALL, None
)
self._volume = cast(iface, POINTER(IAudioEndpointVolume))
self._volume = iface.QueryInterface(IAudioEndpointVolume)
return self._volume


Expand Down

0 comments on commit aceba54

Please sign in to comment.