mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-04 01:03:07 +00:00
Binding Memory Management
This commit is contained in:
parent
9aad91a054
commit
99f50220f2
@ -143,9 +143,3 @@ proc handlePayload*(ctx: LibChat, payload: seq[byte]): Result[Option[ContentResu
|
|||||||
conversationId: $res.convo_id,
|
conversationId: $res.convo_id,
|
||||||
data: content
|
data: content
|
||||||
)))
|
)))
|
||||||
|
|
||||||
|
|
||||||
proc `=destroy`(x: var LibChat) =
|
|
||||||
# Automatically free handle when the destructor is called
|
|
||||||
if x.handle != nil:
|
|
||||||
x.destroy()
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user