Skip to content

Commit ce8c3e5

Browse files
author
xylonx
committed
🐛 (Client) 添加Free方法,释放指针,避免内存泄漏
1 parent ba3914f commit ce8c3e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ type Client interface {
4242
// !=0 - 失败
4343
//
4444
GetMediaData(indexBuf string, sdkFileId string, proxy string, passwd string, timeout int) (*MediaData, error)
45+
46+
// Free 释放 Client
47+
// 释放 C 指针,避免内存泄漏
48+
Free()
4549
}

0 commit comments

Comments
 (0)