Skip to content

Commit

Permalink
Merge pull request #161 from Code-Hex/Code-Hex-patch-1
Browse files Browse the repository at this point in the history
fixed memory leak for VZVirtioSocketListener
  • Loading branch information
Code-Hex authored Oct 19, 2024
2 parents dc6221c + 20cbcd5 commit eadc8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualization_11.m
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ void setStorageDevicesVZVirtualMachineConfiguration(void *config,
{
if (@available(macOS 11, *)) {
VZVirtioSocketListener *ret = [[VZVirtioSocketListener alloc] init];
[ret setDelegate:[[VZVirtioSocketListenerDelegateImpl alloc] initWithHandle:cgoHandle]];
[ret setDelegate:[[[VZVirtioSocketListenerDelegateImpl alloc] initWithHandle:cgoHandle] autorelease]];
return ret;
}

Expand Down

0 comments on commit eadc8d8

Please sign in to comment.