正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -1483,7 +1483,7 @@ func DeleteOfflinePunc(punc *OfflinePunctuation) { | @@ -1483,7 +1483,7 @@ func DeleteOfflinePunc(punc *OfflinePunctuation) { | ||
| 1483 | 1483 | ||
| 1484 | func (punc *OfflinePunctuation) AddPunct(text string) string { | 1484 | func (punc *OfflinePunctuation) AddPunct(text string) string { |
| 1485 | p := C.SherpaOfflinePunctuationAddPunct(punc.impl, C.CString(text)) | 1485 | p := C.SherpaOfflinePunctuationAddPunct(punc.impl, C.CString(text)) |
| 1486 | - defer C.free(unsafe.Pointer(p)) | 1486 | + defer C.SherpaOfflinePunctuationFreeText(p) |
| 1487 | 1487 | ||
| 1488 | text_with_punct := C.GoString(p) | 1488 | text_with_punct := C.GoString(p) |
| 1489 | 1489 |
-
请 注册 或 登录 后发表评论