Skip to content

Commit

Permalink
update asData to match the new symbol (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiYanan2004 authored Dec 4, 2024
1 parent bccfd7a commit 318044f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/StableDiffusion/Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public struct Image {
}
}

let holder = DataHolder(raster.asData())
let holder = DataHolder(raster.asData(access: .copy).data)

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

0 comments on commit 318044f

Please sign in to comment.