Skip to content

Commit 318044f

Browse files
authored
update asData to match the new symbol (#159)
1 parent bccfd7a commit 318044f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/StableDiffusion/Image.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public struct Image {
9292
}
9393
}
9494

95-
let holder = DataHolder(raster.asData())
95+
let holder = DataHolder(raster.asData(access: .copy).data)
9696

9797
let payload = Unmanaged.passRetained(holder).toOpaque()
9898
func release(payload: UnsafeMutableRawPointer?, data: UnsafeMutableRawPointer?) {

0 commit comments

Comments
 (0)