Binding Memory Management

This commit is contained in:
Jazz Turner-Baggs 2026-02-06 15:22:37 -08:00
parent 9aad91a054
commit 99f50220f2
No known key found for this signature in database

View File

@ -143,9 +143,3 @@ proc handlePayload*(ctx: LibChat, payload: seq[byte]): Result[Option[ContentResu
conversationId: $res.convo_id,
data: content
)))
proc `=destroy`(x: var LibChat) =
# Automatically free handle when the destructor is called
if x.handle != nil:
x.destroy()