Skip to content

Commit

Permalink
Merge pull request #1564 from bangnoise/pr/IOSurface-CF-leaks
Browse files Browse the repository at this point in the history
Fix leak of CoreFoundation objects during calls to vkUseIOSurfaceMVK()
  • Loading branch information
billhollings authored Apr 8, 2022
2 parents 8ad7ee8 + 9f5bd82 commit 148823a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MoltenVK/MoltenVK/GPUObjects/MVKImage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,10 @@
});
}
CFDictionaryAddValue(properties, (id)kIOSurfacePlaneInfo, planeProperties);
CFRelease(planeProperties);
}
_ioSurface = IOSurfaceCreate(properties);
CFRelease(properties);
}
}

Expand Down

0 comments on commit 148823a

Please sign in to comment.